From: Ian Jackson Date: Sun, 29 Dec 2019 11:01:18 +0000 (+0000) Subject: tests/example: Include non-.sd.mk files in SUBDIRMK_MAKEFILES X-Git-Tag: subdirmk/0.3~89 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=a4d9f732b93f499b96e3a52459c5f7d2366da14a;hp=9699c3f9373ddec95edf58fd7a3b98c302783194 tests/example: Include non-.sd.mk files in SUBDIRMK_MAKEFILES subdirmk.ac provides @_SUBDIRMK_MAKEFILES@ which is a list of the *.mk makefiles (corresponding to *.mk.in makefiles) passed to SUBDIRMK_MAKEFILES. These need to be included in the identically-named make variable for regen.mk to rerun config.status when the .in files are edited. Signed-off-by: Ian Jackson --- diff --git a/regen.mk.in b/regen.mk.in index b9625d7..11e8a32 100644 --- a/regen.mk.in +++ b/regen.mk.in @@ -33,7 +33,8 @@ $(top_srcdir)/$(CONFIGURE): $(addprefix $(top_srcdir)/,$(CONFIGURE_ACS)) $(CONFIG_STATUS): $(top_srcdir)/$(CONFIGURE) ./$(CONFIG_STATUS) --recheck -# Normally, generate will add all the inputs to MAKEFILE_TEMPLATES. +# generate will add all its own inputs and outputs to these variables +SUBDIRMK_MAKEFILES += @_SUBDIRMK_MAKEFILES@ MAKEFILE_TEMPLATES += $(addprefix $(top_srcdir)/, $(addsuffix .in, \ @_SUBDIRMK_MAKEFILES@ \ ))