projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc]
/
device
/
lib
/
clean.mk
diff --git
a/device/lib/clean.mk
b/device/lib/clean.mk
index 12c8e4c8ef567ec7d11298ea10f5507c85d72722..2f0867b0417e6fce9ff5cee1771a170d52b75419 100644
(file)
--- a/
device/lib/clean.mk
+++ b/
device/lib/clean.mk
@@
-1,4
+1,5
@@
-include incl.mk
+CLEANALLPORTS = ds390 ds400 gbz80 hc08 large mcs51 medium pic pic16 small z80
+include $(srcdir)/incl.mk
# Deleting all files created by building the program
# --------------------------------------------------
# Deleting all files created by building the program
# --------------------------------------------------
@@
-9,22
+10,25
@@
clean:
rm -rf build
for model in $(MODELS); do \
if [ -d $$model ]; then \
rm -rf build
for model in $(MODELS); do \
if [ -d $$model ]; then \
- cd $$model && for name in *; do if [ -f $$name -a $$name != Makefile ]; then rm $$name; fi; done; \
+ cd $$model && for name in *; do if [ -f $$name -a $$name != Makefile
-a $$name != Makefile.in
]; then rm $$name; fi; done; \
fi; \
done
fi; \
done
- make -C mcs51 clean
- make -C ds390 clean
- make -C z80 clean
- make -C gbz80 clean
- make -C hc08 clean
- make -C pic16 clean
- make -C pic clean
+ 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
- rm -f ds390/*.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
# -----------------------------------------