* as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
[fw/sdcc] / as / mcs51 / clean.mk
index 90a6b2a9b25b0b15f117250c05a2e32f9cb94c69..c36ba5e146c84c9303e3fac5e25d2006c240f1d1 100644 (file)
@@ -1,23 +1,21 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
-include $(top_builddir)Makefile.common
-
-clean:
-       rm -f *core *[%~] *.[oa]
-       rm -f .[a-z]*~
-       rm -f $(top_builddir)bin/asx8051$(EXEEXT) asx8051$(EXEEXT)
+include $(top_builddir)/Makefile.common
 
+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.