8007093: build-infra: Make should fail if spec is older than configure files

Mon, 04 Feb 2013 10:53:38 +0100

author
erikj
date
Mon, 04 Feb 2013 10:53:38 +0100
changeset 609
339e4df096a2
parent 608
7e584be2ee58
child 610
dea045cc48ca

8007093: build-infra: Make should fail if spec is older than configure files
Reviewed-by: tbell

common/makefiles/Main.gmk file | annotate | diff | comparison | revisions
     1.1 --- a/common/makefiles/Main.gmk	Fri Feb 01 11:22:41 2013 +0100
     1.2 +++ b/common/makefiles/Main.gmk	Mon Feb 04 10:53:38 2013 +0100
     1.3 @@ -75,7 +75,14 @@
     1.4    all: overlay-images
     1.5  endif
     1.6  
     1.7 -start-make:
     1.8 +# Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
     1.9 +# is up to date after changes to configure
    1.10 +$(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
    1.11 +	@$(ECHO) ERROR: $(SPEC) is not up to date
    1.12 +	@$(ECHO) Please rerun configure!
    1.13 +	@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
    1.14 +
    1.15 +start-make: $(SPEC)
    1.16  	@$(call AtMakeStart)
    1.17  
    1.18  langtools: langtools-only

mercurial