diff options
author | Phil Sutter <phil@nwl.cc> | 2009-08-23 00:30:35 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2009-08-23 00:30:35 +0200 |
commit | 3f1d151339c750f278358322e02022aec4105f7f (patch) | |
tree | 34386dccf3b5c5ace2f916843f2b563df8f25ea0 | |
parent | ba0c06d2bb46e087f1782eb76573e0bef735c062 (diff) |
fix c823698fc91f462eae028ba7e0dfcb9cc0f3e98c
It's the old problem: globbing fails if nothing matches, i.e. instead of
expanding to nothing (the empty string, ""), the pattern itself is being
returned which again messes everything up.
-rw-r--r-- | mk/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/build.mk b/mk/build.mk index 9f2683642..00875e71d 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -127,7 +127,7 @@ clean: $(MAKE) -C $(CONFIG) clean for d in ${STAGING_PARENT_PFX}; do \ echo "clean: entering $$d" ; \ - for f in $$d/pkg/[a-z]*; do \ + for f in $$(ls $$d/pkg/[a-z]* 2>/dev/null); do \ echo "clean: cleaning for $$f" ; \ while read file ; do \ rm $$d/target/$$file ; \ |