]> git.gag.com Git - fw/sdcc/blob - clean.mk
* as/asranlib/asranlib.c: made it more robust
[fw/sdcc] / clean.mk
1 # Deleting all files created by building the program
2 # --------------------------------------------------
3 clean:
4         rm -f *core *[%~] *.[oa]
5         rm -f .[a-z]*~
6         cd bin && for name in *; do if [ -f $$name -a $$name != README ]; then rm $$name; fi; done
7
8 # Deleting all files created by configuring or building the program
9 # -----------------------------------------------------------------
10 distclean: clean
11         rm -f config.cache config.log config.status Makefile Makefile.common
12         rm -f sdccconf.h main.mk *.dep
13         rm -f ports.all ports.build
14
15 # Like clean but some files may still exist
16 # -----------------------------------------
17 mostlyclean: clean
18
19
20 # Deleting everything that can reconstructed by this Makefile. It deletes
21 # everything deleted by distclean plus files created by bison, etc.
22 # -----------------------------------------------------------------------
23 realclean: distclean