-CLEANALLPORTS = avr ds390 izt mcs51 pic z80 xa51
-PRJDIR = ..
+CLEANALLPORTS = avr ds390 ds400 hc08 izt mcs51 pic pic16 z80 xa51
# Deleting all files created by building the program
# --------------------------------------------------
clean:
rm -f *core *[%~] *.[oa] *.output
rm -f .[a-z]*~ \#*
- rm -f $(PRJDIR)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
+ rm -f version.h
+ rm -f SDCCy.c SDCCy.h SDCClex.c
+ rm -f $(top_builddir)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
for port in $(CLEANALLPORTS) ; do\
- $(MAKE) -C $$port -f ../port-clean.mk clean ;\
+ if [ -f $$port/Makefile ]; then\
+ $(MAKE) -C $$port clean ;\
+ fi;\
done
# -----------------------------------------------------------------
distclean: clean
rm -f Makefile *.dep
+ for port in $(CLEANALLPORTS) ; do\
+ if [ -f $$port/Makefile ]; then\
+ $(MAKE) -C $$port distclean ;\
+ fi;\
+ done
# Like clean but some files may still exist