Browse Source

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.
Phil Sutter 15 years ago
parent
commit
3f1d151339
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mk/build.mk

+ 1 - 1
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 ; \