Don't clean folders without Makefile

This commit is contained in:
2020-03-17 12:09:42 +01:00
parent 61894c4588
commit 14408c1993
+4
View File
@@ -179,6 +179,7 @@ clean:
true; \
else \
for dir in $(SUBDIRS); do \
if [ -e "$$dir/Makefile" ]; then \
depth=$(MAKELEVEL); \
while [ $${depth} -gt 0 ] ; do \
echo -n " "; \
@@ -191,6 +192,7 @@ clean:
depth=`expr $$depth - 1`; \
done; \
echo " </$$dir>"; \
fi \
done; \
for target in $(TARGETS); do \
rm -f $$target.$(ARCH); \
@@ -210,6 +212,7 @@ cleandeps:
true; \
else \
for dir in $(SUBDIRS); do \
if [ -e "$$dir/Makefile" ]; then \
depth=$(MAKELEVEL); \
while [ $${depth} -gt 0 ] ; do \
echo -n " "; \
@@ -222,6 +225,7 @@ cleandeps:
depth=`expr $$depth - 1`; \
done; \
echo " </$$dir>"; \
fi \
done; \
for target in $(TARGETS); do \
rm -f $$target.$(ARCH); \