1 CLEANALLPORTS
= pic14 pic16
2 include $(srcdir)/incl.mk
4 # Deleting all files created by building the program
5 # --------------------------------------------------
7 rm -f
*core
*[%~
] *.
[oa
] *.rel
*.lst
*.sym
*.asm
*.ihx
*.dump
* *.cdb
11 for model in
$(MODELS
); do\
12 if
[ -d
$$model ]; then\
13 $(MAKE
) -C
$$model clean ;\
15 rm -rf
$${model}-xstack-auto
$${model}-stack-auto
;\
17 for port in
$(CLEANALLPORTS
) ; do\
18 if
[ -f
$$port/Makefile
]; then\
19 $(MAKE
) -C
$$port clean ;\
24 # Deleting all files created by configuring or building the program
25 # -----------------------------------------------------------------
28 for port in
$(CLEANALLPORTS
) ; do\
29 if
[ -f
$$port/Makefile
]; then\
30 $(MAKE
) -C
$$port distclean ;\
34 # Like clean but some files may still exist
35 # -----------------------------------------
39 # Deleting everything that can reconstructed by this Makefile. It deletes
40 # everything deleted by distclean plus files created by bison, etc.
41 # -----------------------------------------------------------------------