Fix distclean
[fw/sdcc] / src / clean.mk
1 # Deleting all files created by building the program
2 # --------------------------------------------------
3 clean:
4         rm -f *core *[%~] *.[oa] *.output
5         rm -f .[a-z]*~
6         rm -f $(PRJDIR)/bin/sdcc sdcc
7         for port in $(PORTS) ; do\
8           $(MAKE) -C $$port -f clean.mk clean ;\
9         done
10
11
12 # Deleting all files created by configuring or building the program
13 # -----------------------------------------------------------------
14 distclean: clean
15         rm -f Makefile *.dep
16
17
18 # Like clean but some files may still exist
19 # -----------------------------------------
20 mostlyclean: clean
21
22
23 # Deleting everything that can reconstructed by this Makefile. It deletes
24 # everything deleted by distclean plus files created by bison, etc.
25 # -----------------------------------------------------------------------
26 realclean: distclean
27         rm -f SDCCy.c
28         rm -f SDCCy.h
29         rm -f SDCClex.c