Fixed the overlay handling for --model-small and --model-large
[fw/sdcc] / src / clean.mk
index bc083764424a77ed7bc71d5c02c50aef037e1de8..61be2b99143ff180e984f225b081a1f81f6d1eb9 100644 (file)
@@ -2,10 +2,10 @@
 # --------------------------------------------------
 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 ;\
+         $(MAKE) -C $$port clean ;\
        done
 
 
@@ -18,6 +18,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