summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/build.mk2
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 ; \