Makefile.include: support extending CLEAN with directories

Use recursive remove for $(CLEAN) to support applications that extended it
with directories that should be removed.
This commit is contained in:
Peter A. Bigot 2013-06-20 12:20:50 -05:00
parent 7cc8f326f4
commit e6431d8fff

View file

@ -175,11 +175,12 @@ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
rm -f $(@:.o=.$$$$)
endef
clean:
clean:
rm -f *~ *core core *.srec \
*.lst *.map \
*.cprg *.bin *.data contiki*.a *.firmware core-labels.S *.ihex *.ini \
*.ce *.co $(CLEAN)
*.ce *.co
rm -rf $(CLEAN)
-rm -rf $(OBJECTDIR)
ifndef CUSTOM_RULE_C_TO_CE