Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / sim / ucsim / clean.mk
index 6446fb20ec3e60f98865e919643417f06c692d5b..4411323ee52a143b8505ecfc18b14fe3f54a705f 100644 (file)
@@ -1,22 +1,24 @@
-# PENDING: Delegate up to the Makefile
-
 # Deleting all files created by building the program
 # --------------------------------------------------
 clean:
-       make clean
+       rm -f *core *[%~] *.[oa] *.so ucsim$(EXEEXT)
+       rm -f .[a-z]*~ ptt
+
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------
-distclean: 
-       make distclean
+distclean: clean
+       rm -f config.cache config.log config.status
+       rm -f ddconfig.h main.mk Makefile *.dep
+       rm -rf autom4te.cache
+
 
 # Like clean but some files may still exist
 # -----------------------------------------
-mostlyclean:
-       make mostlyclean
+mostlyclean: clean
+
 
 # Deleting everything that can reconstructed by this Makefile. It deletes
 # everything deleted by distclean plus files created by bison, etc.
 # -----------------------------------------------------------------------
-realclean: 
-       make realclean
\ No newline at end of file
+realclean: distclean