Don't clean folders without Makefile
This commit is contained in:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user