Bug 446690, make distclean does not fully clean a hg src build
authorFlorian Quèze <florian@queze.net>
Tue, 19 Jan 2010 22:10:55 -0500
changeset 4715 a7bc632efcd7d0a8f4ce2b416a2906a8d5ae5e4d
parent 4714 9defd59740d1053abd627e70c2c4e9cc64119b3b
child 4716 ed37438a476a49c7817be5e9f5d649134bf9cbd1
push id3690
push userCallek@gmail.com
push dateWed, 20 Jan 2010 03:17:17 +0000
treeherdercomm-central@ed37438a476a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs446690
Bug 446690, make distclean does not fully clean a hg src build r+=KaiRo, [slight] bitrot fixed by Callek
Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -73,8 +73,18 @@ endif
 
 buildsymbols ::
 	$(MAKE) -C mozilla MAKE_SYM_STORE_PATH=$(MAKE_SYM_STORE_PATH) SYM_STORE_SOURCE_DIRS="$(topsrcdir)/mozilla/extensions/inspector $(topsrcdir)/mozilla $(topsrcdir)" $@
 
 include $(topsrcdir)/config/rules.mk
 
 MOZ_SOURCE_STAMP = $(shell hg -R $(srcdir) parent --template="{node|short}\n" 2>/dev/null)
 export MOZ_SOURCE_STAMP
+
+DIST_GARBAGE = config.cache config.log config.status config-defs.h \
+   dependencies.beos config/myrules.mk config/myconfig.mk \
+   unallmakefiles mozilla-config.h \
+   $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
+
+distclean::
+	cat unallmakefiles | $(XARGS) rm -f
+	rm -f $(DIST_GARBAGE)
+