summaryrefslogtreecommitdiff
path: root/test/Makefile.in
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2021-05-09 18:33:44 -0700
committerGlenn Morris <rgm@gnu.org>2021-05-09 18:33:44 -0700
commitfddc1a537788c00a22e8c3a6161879ca8e39ad9f (patch)
tree7a6bfa63cccd55b751a16e2ff5e281872a686297 /test/Makefile.in
parentaa2625b36a09b74bbd92d260c5045c7d95a63db6 (diff)
downloademacs-fddc1a537788c00a22e8c3a6161879ca8e39ad9f.tar.gz
* test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree.
Diffstat (limited to 'test/Makefile.in')
-rw-r--r--test/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 84ab4e70aee..4bcfee7bad5 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -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))))