X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fclean.mk;h=fa96fbae8b700e83fa714d56f4c03c077e4c5460;hb=9f034219c943bb8ba958efaa6258c8f220633c17;hp=bc083764424a77ed7bc71d5c02c50aef037e1de8;hpb=a4f9f32b5ea1cad802c3165651b549f4b5bdfb49;p=fw%2Fsdcc diff --git a/src/clean.mk b/src/clean.mk index bc083764..fa96fbae 100644 --- a/src/clean.mk +++ b/src/clean.mk @@ -1,11 +1,14 @@ +CLEANALLPORTS = avr ds390 izt mcs51 pic z80 +PRJDIR = .. + # Deleting all files created by building the program # -------------------------------------------------- clean: rm -f *core *[%~] *.[oa] *.output - rm -f .[a-z]*~ + rm -f .[a-z]*~ \#* rm -f $(PRJDIR)/bin/sdcc sdcc - for port in $(PORTS) ; do\ - $(MAKE) -C $$port -f clean.mk clean ;\ + for port in $(CLEANALLPORTS) ; do\ + $(MAKE) -C $$port -f ../port-clean.mk clean ;\ done @@ -18,6 +21,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