* as/hc08/clean.mk,
[fw/sdcc] / as / mcs51 / clean.mk
index 76d0f25da3847e62f1df8f6846fd2691911342c2..c36ba5e146c84c9303e3fac5e25d2006c240f1d1 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/asx8051$(EXEEXT) asx8051$(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/asx8051$(EXEEXT) asx8051$(EXEEXT)
 
 # Deleting everything that can reconstructed by this Makefile. It deletes
 # everything deleted by distclean plus files created by bison, etc.