fix warning
[fw/sdcc] / src / clean.mk
index b60ad6d7874bb653ed510fe58abad59afaec146d..d308c9b7dd294a09a3b93aeb54c1de507e5f2d88 100644 (file)
@@ -1,11 +1,14 @@
+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 $(PORTS) ; do\
-         $(MAKE) -C $$port -f clean.mk clean ;\
+       rm -f $(PRJDIR)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
+       for port in $(CLEANALLPORTS) ; do\
+         $(MAKE) -C $$port -f ../port-clean.mk clean ;\
        done