Try to use make rules (rather than the less portable test -nt) to ensure that

changes to Version cause a full configure but other changes do not.
This commit is contained in:
Richard Frith-Macdonald 2019-10-18 09:57:04 +01:00
parent 2d0f6849d6
commit 8c2225b3ee

View file

@ -99,10 +99,14 @@ ifeq ($(_have_makefiles),yes)
config.mak: config.status config.mak.in
@./$< $@
base.make: config.status base.make.in Version
# If Version is newer than the target, configure must be rerun so that
# its variables get AC_SUBST'ed and actually updated in base.make.
@if [ Version -nt $@ ]; then ./configure; else ./$< $@; fi
base.make:: Version
@./configure
# Normally (Version unchanged) config.status can regenerate base.make.
base.make:: config.status base.make.in
@./$< $@
config.status: configure
@if [ -f $@ ]; then ./$@ --recheck; else ./$<; fi