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:
parent
7cc8f326f4
commit
e6431d8fff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user