X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fclean.mk;h=59d80d18681b57fb82d2df402e59b9994c50f229;hb=1e1c6a588fe0a45598443b59686c6f6cd0f84cca;hp=4b8f0618549cfb7f1994c92dc8706678eb5c96bd;hpb=b09af35f2f1cde7649d3ac4a6f5d2af6d97895a0;p=fw%2Fsdcc diff --git a/src/clean.mk b/src/clean.mk index 4b8f0618..59d80d18 100644 --- a/src/clean.mk +++ b/src/clean.mk @@ -1,9 +1,16 @@ +CLEANALLPORTS = avr ds390 izt mcs51 pic pic16 z80 xa51 +PRJDIR = .. + # Deleting all files created by building the program # -------------------------------------------------- clean: rm -f *core *[%~] *.[oa] *.output - rm -f .[a-z]*~ - rm -f $(PRJDIR)/bin/sdcc sdcc + rm -f .[a-z]*~ \#* + rm -f version.h + rm -f $(PRJDIR)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT) + for port in $(CLEANALLPORTS) ; do\ + $(MAKE) -C $$port -f ../port-clean.mk clean ;\ + done # Deleting all files created by configuring or building the program @@ -15,6 +22,9 @@ distclean: clean # Like clean but some files may still exist # ----------------------------------------- mostlyclean: clean + rm -f SDCCy.c + rm -f SDCCy.h + rm -f SDCClex.c # Deleting everything that can reconstructed by this Makefile. It deletes