From 750af6c4b42f2d4b2304cb3e693f266bb2bb62c8 Mon Sep 17 00:00:00 2001 From: "F. Jason Park" Date: Wed, 13 Apr 2022 21:03:36 -0700 Subject: [PATCH 1/2] [POC CHECK] Add check-expensive- prefixes for test-subdir targets * test/Makefile.in (subdir_template): Convert all targets like 'check-{lisp,src}-mylib' to multi-targets (info "(make) Multiple Targets") that also match 'check-expensive-{lisp,src}-mylib' variants. --- test/Makefile.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/Makefile.in b/test/Makefile.in index 3b6e116e65..445101f430 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -245,9 +245,10 @@ SUBDIR_TARGETS = define subdir_template SUBDIR_TARGETS += check-$(subst /,-,$(1)) - .PHONY: check-$(subst /,-,$(1)) - check-$(subst /,-,$(1)): - @${MAKE} check LOGFILES="$(patsubst %.el,%.log, \ + .PHONY: check-$(subst /,-,$(1)) check-expensive-$(subst /,-,$(1)) + check-$(subst /,-,$(1)) check-expensive-$(subst /,-,$(1)): + @${MAKE} $$(subst -$(subst /,-,$(1)),,$$@) \ + LOGFILES="$(patsubst %.el,%.log, \ $(patsubst $(srcdir)/%,%,$(wildcard ${srcdir}/$(1)/*.el)))" endef -- 2.35.1