Bug 468569 - after building in srcdir, make distclean doesn't clean up enough. r=ted
authorFlorian Queze <florian@queze.net>
Mon, 13 Jul 2009 13:46:23 +0200
changeset 30215 e3623a7d1217f8a06b5f2c4a2feea9b71f5bdbe4
parent 30214 728b9a9345b0d956ec1c8d45c6e50d57df74ecca
child 30216 05734cb6e140b2bb6c6809cd10c37fc7a9e237be
push id7995
push userflorian@queze.net
push dateMon, 13 Jul 2009 11:50:12 +0000
treeherdermozilla-central@05734cb6e140 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs468569
milestone1.9.2a1pre
Bug 468569 - after building in srcdir, make distclean doesn't clean up enough. r=ted
js/src/Makefile.in
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -349,16 +349,24 @@ endif
 
 ifdef ENABLE_JIT
 check::
 	$(wildcard $(RUN_TEST_PROGRAM)) $(DIST)/bin/js$(BIN_SUFFIX) -j -e \
 		"var gSrcdir='$(call normalizepath,$(srcdir))'; var gSkipSlowTests=true; var gReportSummary=false;" \
 		$(srcdir)/trace-test.js
 endif
 
+DIST_GARBAGE = config.cache config.log config.status \
+   config/myrules.mk config/myconfig.mk \
+   unallmakefiles js-config js-config.h mozilla-config.h
+
+distclean::
+	cat unallmakefiles | $(XARGS) rm -f
+	rm -f $(DIST_GARBAGE)
+
 # our build system doesn't handle subdir srcs very gracefully today
 export::
 	mkdir -p nanojit
 
 DEFINES		+= -DEXPORT_JS_API 
 
 INCLUDES	+= -I$(srcdir)