From 3f1d151339c750f278358322e02022aec4105f7f Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 23 Aug 2009 00:30:35 +0200 Subject: 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. --- mk/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; \ -- cgit v1.2.3