Add 'distclean' rule to delete intermediate build files
Jim Huang [Wed, 11 Aug 2010 04:08:30 +0000 (12:08 +0800)]
This build rule might be useful to developers who wish to switch among
different Android targets.

Change-Id: I412d7e8f69710dd9d421f21fa7d93bed80642834

Makefile.in

index 12d355d..60307f4 100644 (file)
@@ -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