moved installed docs, removed obsoletes, fixed makefiles to do a proper distclean...
[fw/sdcc] / src / clean.mk
index a083e38770df25e0fa63238e69568eab539621b4..21d366e8ef0b0700863872ba1bf4d4648da27ece 100644 (file)
@@ -1,10 +1,16 @@
+CLEANALLPORTS = avr ds390 izt mcs51 pic z80 xa51
+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 clean; done;
+       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 +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