projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
[fw/sdcc]
/
src
/
clean.mk
diff --git
a/src/clean.mk
b/src/clean.mk
index 4b8f0618549cfb7f1994c92dc8706678eb5c96bd..82dc4d8dbd67be2e11f97001de60a68055e51f4b 100644
(file)
--- a/
src/clean.mk
+++ b/
src/clean.mk
@@
-1,20
+1,37
@@
+CLEANALLPORTS = avr ds390 ds400 hc08 mcs51 pic pic16 z80 xa51
+
# Deleting all files created by building the program
# --------------------------------------------------
clean:
rm -f *core *[%~] *.[oa] *.output
# Deleting all files created by building the program
# --------------------------------------------------
clean:
rm -f *core *[%~] *.[oa] *.output
- rm -f .[a-z]*~
- rm -f $(PRJDIR)/bin/sdcc sdcc
+ rm -f .[a-z]*~ \#*
+ 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\
+ if [ -f $$port/Makefile ]; then\
+ $(MAKE) -C $$port clean ;\
+ fi;\
+ done
# Deleting all files created by configuring or building the program
# -----------------------------------------------------------------
distclean: clean
rm -f Makefile *.dep
# Deleting all files created by configuring or building the program
# -----------------------------------------------------------------
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
# -----------------------------------------
mostlyclean: clean
# Like clean but some files may still exist
# -----------------------------------------
mostlyclean: clean
+ rm -f SDCCy.c
+ rm -f SDCCy.h
+ rm -f SDCClex.c
# Deleting everything that can reconstructed by this Makefile. It deletes
# Deleting everything that can reconstructed by this Makefile. It deletes