diff options
author | Jim Huang <jserv@0xlab.org> | 2010-08-11 12:08:30 +0800 |
---|---|---|
committer | Jim Huang <jserv@0xlab.org> | 2010-08-11 12:08:30 +0800 |
commit | c21b158d6f0910929dcec75327455770268a1d67 (patch) | |
tree | a0b6917f3b38f104bcdc36a09e687068e8da8aee | |
parent | a80c0ec10d3832039c5d5a481f5f62172eddc929 (diff) |
Add 'distclean' rule to delete intermediate build files
This build rule might be useful to developers who wish to switch among
different Android targets.
Change-Id: I412d7e8f69710dd9d421f21fa7d93bed80642834
-rw-r--r-- | Makefile.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 12d355d..60307f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -353,3 +353,15 @@ clean: $(MAKE) -C $$sub clean ; \ fi; \ done + +.PHONY: distclean +distclean: + @$(RM) -r config.log config.status \ + $(TEMP_INSTALLDIR) temp-src \ + stmp-config-* stmp-build-* stmp-install-* && \ + for sub in [ * ]; do \ + if [ -f $$sub/config.status ]; then \ + echo "Deleting " $$sub "..." && $(RM) -r $$sub ; \ + fi; \ + done + @$(RM) Makefile |