moved installed docs, removed obsoletes, fixed makefiles to do a proper distclean...
[fw/sdcc] / src / clean.mk
1 CLEANALLPORTS = avr ds390 izt mcs51 pic z80 xa51
2 PRJDIR = ..
3
4 # Deleting all files created by building the program
5 # --------------------------------------------------
6 clean:
7         rm -f *core *[%~] *.[oa] *.output
8         rm -f .[a-z]*~ \#*
9         rm -f $(PRJDIR)/bin/sdcc sdcc
10         for port in $(CLEANALLPORTS) ; do\
11           $(MAKE) -C $$port -f ../port-clean.mk clean ;\
12         done
13
14
15 # Deleting all files created by configuring or building the program
16 # -----------------------------------------------------------------
17 distclean: clean
18         rm -f Makefile *.dep
19
20
21 # Like clean but some files may still exist
22 # -----------------------------------------
23 mostlyclean: clean
24         rm -f SDCCy.c
25         rm -f SDCCy.h
26         rm -f SDCClex.c
27
28
29 # Deleting everything that can reconstructed by this Makefile. It deletes
30 # everything deleted by distclean plus files created by bison, etc.
31 # -----------------------------------------------------------------------
32 realclean: distclean
33         rm -f SDCCy.c
34         rm -f SDCCy.h
35         rm -f SDCClex.c