Bug 541657, Port |Bug 540038 - add warning if configure or config.status are out of date| to comm-central; r=KaiRo
authorJustin Wood <Callek@gmail.com>
Sun, 24 Jan 2010 22:34:40 -0500
changeset 4755 142e1e5b4f0bf898f9cd1fe095d7cdc2b4ff7403
parent 4754 03524dcb29592cfecabc3f4c5359502afc0ed734
child 4756 68303fb594753bd908d3fb5f86c8ec11328f367a
push idunknown
push userunknown
push dateunknown
reviewersKaiRo
bugs541657, 540038
Bug 541657, Port |Bug 540038 - add warning if configure or config.status are out of date| to comm-central; r=KaiRo
Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,17 +42,31 @@ VPATH		= @srcdir@
 include $(DEPTH)/config/autoconf.mk
 
 default::
 
 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
 
 include $(topsrcdir)/config/config.mk
 
-default export libs clean realclean distclean alldep maybe_clobber_profiledbuild uploadsymbols::
+default alldep all:: $(topsrcdir)/configure config.status
+
+$(topsrcdir)/configure: $(topsrcdir)/configure.in
+	@echo "STOP!  configure.in has changed, and your configure is out of date."
+	@echo "Please rerun autoconf and configure."
+	@echo "To ignore this message, touch 'configure' in the source directory."
+	@exit 1
+
+config.status: $(topsrcdir)/configure
+	@echo "STOP!  configure has changed and needs to be run in this build directory."
+	@echo "Please rerun configure."
+	@echo "To ignore this message, touch 'config.status' in the build directory."
+	@exit 1
+
+default export libs clean realclean distclean alldep maybe_clobber_profiledbuild uploadsymbols all::
 	$(MAKE) -C mozilla $@
 
 ifdef ENABLE_TESTS
 check \
 mochitest mochitest-plain mochitest-chrome mochitest-browser-chrome mochitest-a11y \
 reftest crashtest \
 xpcshell-tests \
 package-tests::