summaryrefslogtreecommitdiffstats
path: root/update-file-lists.mk
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-01-14 12:28:05 -0800
committerRoland McGrath <roland@redhat.com>2009-01-14 12:28:05 -0800
commit4ad30f7cb98ad5ef6b86109ff466941e0fe9d82b (patch)
tree79d34522159b34165c2c0c060468e42be63b9935 /update-file-lists.mk
parent3ce543dfa5851ff7003bc2db227e9a1e780c1f0e (diff)
downloaddebuginfo-test-scripts-4ad30f7cb98ad5ef6b86109ff466941e0fe9d82b.tar.gz
debuginfo-test-scripts-4ad30f7cb98ad5ef6b86109ff466941e0fe9d82b.tar.xz
debuginfo-test-scripts-4ad30f7cb98ad5ef6b86109ff466941e0fe9d82b.zip
Bogon check
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)