]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree.
authorGlenn Morris <rgm@gnu.org>
Mon, 10 May 2021 01:33:44 +0000 (18:33 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 10 May 2021 01:33:44 +0000 (18:33 -0700)
test/Makefile.in

index 84ab4e70aeeabd1e78e3cb715b2355a3e46ca150..4bcfee7bad5cf7b786802b179aee5d2b37cbfd31 100644 (file)
@@ -245,13 +245,13 @@ endef
 $(foreach test,${TESTS},$(eval $(call test_template,${test})))
 
 ## Get the tests for only a specific directory.
-SUBDIRS = $(sort $(shell find lib-src lisp misc src -type d ! -path "*resources*" -print))
+SUBDIRS = $(sort $(shell cd ${srcdir} && find lib-src lisp misc src -type d ! -path "*resources*" -print))
 
 define subdir_template
   .PHONY: check-$(subst /,-,$(1))
   check-$(subst /,-,$(1)):
        @${MAKE} check LOGFILES="$(patsubst %.el,%.log, \
-               $(patsubst $(srcdir)/%,%,$(wildcard $(1)/*.el)))"
+               $(patsubst $(srcdir)/%,%,$(wildcard ${srcdir}/$(1)/*.el)))"
 endef
 
 $(foreach subdir, $(SUBDIRS), $(eval $(call subdir_template,$(subdir))))