projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc]
/
src
/
clean.mk
diff --git
a/src/clean.mk
b/src/clean.mk
index 59d80d18681b57fb82d2df402e59b9994c50f229..82dc4d8dbd67be2e11f97001de60a68055e51f4b 100644
(file)
--- a/
src/clean.mk
+++ b/
src/clean.mk
@@
-1,5
+1,4
@@
-CLEANALLPORTS = avr ds390 izt mcs51 pic pic16 z80 xa51
-PRJDIR = ..
+CLEANALLPORTS = avr ds390 ds400 hc08 mcs51 pic pic16 z80 xa51
# Deleting all files created by building the program
# --------------------------------------------------
# Deleting all files created by building the program
# --------------------------------------------------
@@
-7,9
+6,12
@@
clean:
rm -f *core *[%~] *.[oa] *.output
rm -f .[a-z]*~ \#*
rm -f version.h
rm -f *core *[%~] *.[oa] *.output
rm -f .[a-z]*~ \#*
rm -f version.h
- rm -f $(PRJDIR)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
+ rm -f SDCCy.c SDCCy.h SDCClex.c
+ rm -f $(top_builddir)/bin/sdcc$(EXEEXT) sdcc$(EXEEXT)
for port in $(CLEANALLPORTS) ; do\
for port in $(CLEANALLPORTS) ; do\
- $(MAKE) -C $$port -f ../port-clean.mk clean ;\
+ if [ -f $$port/Makefile ]; then\
+ $(MAKE) -C $$port clean ;\
+ fi;\
done
done
@@
-17,6
+19,11
@@
clean:
# -----------------------------------------------------------------
distclean: clean
rm -f Makefile *.dep
# -----------------------------------------------------------------
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
# Like clean but some files may still exist