* sim/ucsim/cmd.src/error.cc, sim/ucsim/cmd.src/errorcl.h,
[fw/sdcc] / src / clean.mk
index 165682d366ba333fdfa6fe3685d5a324563cc920..59d80d18681b57fb82d2df402e59b9994c50f229 100644 (file)
@@ -1,11 +1,15 @@
+CLEANALLPORTS = avr ds390 izt mcs51 pic pic16 z80 xa51
+PRJDIR = ..
+
 # Deleting all files created by building the program
 # --------------------------------------------------
 clean:
        rm -f *core *[%~] *.[oa] *.output
        rm -f .[a-z]*~ \#*
-       rm -f $(PRJDIR)/bin/sdcc sdcc
-       for port in $(ALLPORTS) ; do\
-         $(MAKE) -C $$port -f clean.mk clean ;\
+       rm -f version.h
+       rm -f $(PRJDIR)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
+       for port in $(CLEANALLPORTS) ; do\
+         $(MAKE) -C $$port -f ../port-clean.mk clean ;\
        done