summaryrefslogtreecommitdiffstats
path: root/update-file-lists.mk
diff options
context:
space:
mode:
Diffstat (limited to 'update-file-lists.mk')
-rwxr-xr-xupdate-file-lists.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/update-file-lists.mk b/update-file-lists.mk
index fffa2e1..f777300 100755
--- a/update-file-lists.mk
+++ b/update-file-lists.mk
@@ -8,9 +8,14 @@ ifeq (,$(summary))
dirs := $(wildcard */)
+ifeq (,$(dirs))
+$(which).list:
+ @echo "`pwd` not good"; exit 2
+else
$(which).list: %: $(dirs:=$(which).list)
cat -- $^ > $@.new
mv -f $@.new $@
+endif
me := $(MAKEFILE_LIST)