diff options
-rwxr-xr-x | update-file-lists.mk | 5 |
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) |