diff options
author | Chris Packham <judge.packham@gmail.com> | 2018-03-29 15:23:25 +1300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2018-03-29 15:23:25 +1300 |
commit | ff04c98b6422e4c4076a5cbdcc156a8d10b4580a (patch) | |
tree | af736eb23e8deb19645c5fe8f949540c790fce7e | |
parent | aca85cbb3d9cf0247674464a55246029d5820114 (diff) | |
download | crosstool-ng-ff04c98b6422e4c4076a5cbdcc156a8d10b4580a.tar.gz crosstool-ng-ff04c98b6422e4c4076a5cbdcc156a8d10b4580a.tar.bz2 crosstool-ng-ff04c98b6422e4c4076a5cbdcc156a8d10b4580a.zip |
Makefile.in: check for configure being up to date
Fixes #934
Add a rule that errors out with a message if configure.ac is newer than
configure. This should catch times where someone is building from the
repo without running bootstrap.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 76fbd93e..2ac93ac6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -44,7 +44,7 @@ __silent_rmdir = $(call __silent,RMDIR,$1)rm -rf $1 # Remove any suffix rules .SUFFIXES: -all: Makefile build +all: configure Makefile build ############################################################################### # Configuration variables @@ -104,6 +104,10 @@ Makefile: Makefile.in @echo "$< changed: you must re-run './configure'" @false +configure: configure.ac + @echo "$< changed: you must re-run './bootstrap'" + @false + # If installing with DESTDIR, check it's an absolute path ifneq ($(strip $(DESTDIR)),) ifneq ($(DESTDIR),$(abspath /$(DESTDIR))) |