From: Glenn Morris Date: Mon, 10 May 2021 01:33:44 +0000 (-0700) Subject: * test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree. X-Git-Tag: emacs-28.0.90~2535 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fddc1a537788c00a22e8c3a6161879ca8e39ad9f;p=emacs.git * test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree. --- 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))))