* as/hc08/clean.mk,
[fw/sdcc] / as / hc08 / clean.mk
index ea3b3e941f0a6a1966adfe336c3db486403cc491..78a6753ed578da13d0e7ff972891543257931c97 100644 (file)
@@ -2,22 +2,20 @@
 # --------------------------------------------------
 include $(top_builddir)/Makefile.common
 
-clean:
-       rm -f *core *[%~] *.[oa]
-       rm -f .[a-z]*~
-       rm -f $(top_builddir)/bin/as-hc08$(EXEEXT) as-hc08$(EXEEXT)
-
+clean: mostlyclean
+       rm -f *.dep
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------
 distclean: clean
-       rm -f Makefile *.dep
-
+       rm -f Makefile
 
 # Like clean but some files may still exist
 # -----------------------------------------
-mostlyclean: clean
-
+mostlyclean:
+       rm -f *core *[%~] *.[oa]
+       rm -f .[a-z]*~
+       rm -f $(top_builddir)/bin/as-hc08$(EXEEXT) as-hc08$(EXEEXT)
 
 # Deleting everything that can reconstructed by this Makefile. It deletes
 # everything deleted by distclean plus files created by bison, etc.