From e6431d8fffcffff74dc1ac640599a0b631806dfc Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Thu, 20 Jun 2013 12:20:50 -0500 Subject: [PATCH] Makefile.include: support extending CLEAN with directories Use recursive remove for $(CLEAN) to support applications that extended it with directories that should be removed. --- Makefile.include | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index f80757b5b..306b223b9 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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