Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / as / z80 / clean.mk
index cf18deed5150603bc0f63c16b4fd8ddca81357df..579a48e57f0d62425fc9ac552844ab82edabadc2 100644 (file)
@@ -1,18 +1,18 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
-include ../../Makefile.common
+include $(top_builddir)Makefile.common
 
 clean:
        rm -rf obj
        rm -f *core *[%~] *.[oa]
        rm -f .[a-z]*~
-       rm -f $(BUILDDIR)/as-z80$(EXEEXT)   as-z80$(EXEEXT)
-       rm -f $(BUILDDIR)/as-gbz80$(EXEEXT) as-gbz80$(EXEEXT)
+       rm -f $(top_builddir)bin/as-z80$(EXEEXT)   as-z80$(EXEEXT)
+       rm -f $(top_builddir)bin/as-gbz80$(EXEEXT) as-gbz80$(EXEEXT)
 
 # 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