summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate-file-lists.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-file-lists.mk b/update-file-lists.mk
index 4601070..209dbbd 100755
--- a/update-file-lists.mk
+++ b/update-file-lists.mk
@@ -8,14 +8,14 @@ ifeq (,$(summary))
dirs := $(wildcard */)
-$(which).list: $(dirs:=$(which).list)
+$(which).list: %: $(dirs:=$(which).list)
cat -- $^ > $@.new
mv -f $@.new $@
me := $(MAKEFILE_LIST)
FORCE:;
-$(dirs:=$(which).list): FORCE
+$(dirs:=$(which).list): %: FORCE
$(MAKE) -f `(cd $(dir $(me)); pwd)`/$(notdir $(me)) \
-C $(@D) which=$(which)