Change distclean to clean all platforms

This commit is contained in:
George Oikonomou 2018-03-30 20:20:55 +01:00
parent c7e36a3d55
commit 9a1d34e163
1 changed files with 5 additions and 2 deletions

View File

@ -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)