mirror of
https://github.com/git/git.git
synced 2024-11-28 12:34:08 +08:00
Merge branch 'jn/less-reconfigure'
When autoconf is used, any build on a different commit always ran "config.status --recheck" even when unnecessary. * jn/less-reconfigure: build: do not automatically reconfigure unless configure.ac changed
This commit is contained in:
commit
85f2697048
10
Makefile
10
Makefile
@ -2313,8 +2313,14 @@ configure: configure.ac GIT-VERSION-FILE
|
||||
$(RM) $<+
|
||||
|
||||
ifdef AUTOCONFIGURED
|
||||
config.status: configure
|
||||
$(QUIET_GEN)if test -f config.status; then \
|
||||
# We avoid depending on 'configure' here, because it gets rebuilt
|
||||
# every time GIT-VERSION-FILE is modified, only to update the embedded
|
||||
# version number string, which config.status does not care about. We
|
||||
# do want to recheck when the platform/environment detection logic
|
||||
# changes, hence this depends on configure.ac.
|
||||
config.status: configure.ac
|
||||
$(QUIET_GEN)$(MAKE) configure && \
|
||||
if test -f config.status; then \
|
||||
./config.status --recheck; \
|
||||
else \
|
||||
./configure; \
|
||||
|
Loading…
Reference in New Issue
Block a user