Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / support / makebin / clean.mk
index dfe9fb2067442abb00bf8eb04de51f1b9591c0b5..715c0ae64940d22bfa00489f94fb9322a87581de 100644 (file)
@@ -1,16 +1,14 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
-PRJDIR = ../..
-
 clean:
        rm -rf obj
-       rm -f *core *[%~] *.[oa] $(PRJDIR)/bin/makebin$(EXEEXT)
+       rm -f *core *[%~] *.[oa] $(top_builddir)bin/makebin$(EXEEXT)
        rm -f *.[a-z]*~
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------
 distclean: clean
-       rm -f *.dep
+       rm -f Makefile *.dep
 
 
 # Like clean but some files may still exist