* configure, configure.in, config.dsp, config_vc.awk,
[fw/sdcc] / as / hc08 / clean.mk
index 6b47bf1cea51f3eb21ed8d902032618667d6194c..78a6753ed578da13d0e7ff972891543257931c97 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/as-hc08$(EXEEXT) $(top_builddir)bin/link-hc08$(EXEEXT) as-hc08$(EXEEXT) link-hc08$(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/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.