mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
2d0f6849d6
commit
8c2225b3ee
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue