Skip to content

Commit

Permalink
Makefile.in: check for configure being up to date
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cpackham committed Mar 29, 2018
1 parent aca85cb commit ff04c98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.in
Expand Up @@ -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
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit ff04c98

Please sign in to comment.