From: Ian Jackson Date: Sat, 28 Dec 2019 22:18:19 +0000 (+0000) Subject: Merge from secnet X-Git-Tag: subdirmk/0.3~123 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=2a8a5a4b83fa745c7016a68dad7722aed4709705;hp=411c2cad33613d6790cb819e8bd91a7f58a3998f Merge from secnet --- diff --git a/README b/README index 27dd855..fcf8c00 100644 --- a/README +++ b/README @@ -183,7 +183,7 @@ In more detail, with all the various options laid out: for build source build source This lc &file &^file $(PWD)/&file $(abs_src)/&file - directory any &/file &^/file $(PWD)&/file $(abs_src)/&/file + directory any &/file &^/file $(PWD)/&file $(abs_src)/&/file several & f g h &^ f g h $(addprefix...) Top lc file &~file diff --git a/generate b/generate index 32c6fbf..9275b25 100755 --- a/generate +++ b/generate @@ -258,6 +258,11 @@ sub process_subtree ($$) { } print O "\n"; } + if (@targets) { + print O ".PHONY:"; + print O " ${dir_prefix}${_}" foreach @targets; + print O "\n"; + } return @targets; } diff --git a/regen.mk.in b/regen.mk.in index c4002a6..5f24b08 100644 --- a/regen.mk.in +++ b/regen.mk.in @@ -44,10 +44,10 @@ main.mk $(SUBDIRMK_MAKEFILES) $(CONFIG_STATUS_OUTPUTS): .makefiles.stamp # This filtering arranges that we can often run config.status to # generate only particular output files. We look for *inputs* that # have changed. If the only inputs that have changed are ones that we -# know affect only one output (Subdir.mk.in and regen.mk.in), we pass +# know affect only one output (Subdir.sd.mk and *.mk.in), we pass # config.status the corresponding output file names. Otherwise we # pass nothing and config.status does them all. We need to mention -# regen.mk.in twice because if $(top_srcdir) is `.', make elides the +# Subdir.sd.mk twice because if $(top_srcdir) is `.', make elides the # directory part from $?. ./$(CONFIG_STATUS) $(if \ $(filter-out Subdir.sd.mk %/Subdir.sd.mk \