From 9a1d34e163aa630e506a08f5814711cad3ded3e3 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 30 Mar 2018 20:20:55 +0100 Subject: [PATCH] Change distclean to clean all platforms --- Makefile.include | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 802be19d9..a55bf0901 100644 --- a/Makefile.include +++ b/Makefile.include @@ -300,8 +300,11 @@ clean: -rm -f $(addsuffix -$(TARGET).map, $(CONTIKI_PROJECT)) -rm -f $(addsuffix .$(TARGET), $(CONTIKI_PROJECT)) -distclean: clean - -rm -f ${addsuffix .$(TARGET),$(CONTIKI_PROJECT)} +distclean: + @for TARG in `ls $(CONTIKI)/arch/platform $(TARGETDIRS)`; do \ + echo make $$TARG clean; \ + make TARGET=$$TARG clean; \ + done -include $(CONTIKI)/arch/platform/$(TARGET)/Makefile.customrules-$(TARGET)