Auto-reconfigure on Makefile.in or configure change.

This commit is contained in:
Graydon Hoare 2011-03-25 10:29:45 -07:00
parent d7c67fc6ac
commit 10f336055c
2 changed files with 13 additions and 0 deletions

View File

@ -1106,6 +1106,16 @@ endif
depend: boot/rustboot$(X) $(CRATE_DEPFILES) $(ML_DEPFILES) $(C_DEPFILES)
######################################################################
# Re-configuration
######################################################################
config.mk: $(S)configure $(S)Makefile.in
@$(call E, cfg: reconfiguring)
$(S)configure $(CFG_CONFIGURE_ARGS)
######################################################################
# Distribution
######################################################################

3
configure vendored
View File

@ -87,6 +87,8 @@ CFG_CPUTYPE=$(uname -m)
CFG_SELF=$(echo $0 | tr '\' '/')
CFG_SRC_DIR=${CFG_SELF%${CFG_SELF##*/}}
CFG_BUILD_DIR=$(echo $PWD | tr '\' '/')
CFG_CONFIGURE_ARGS="$@"
msg "recreating config.mk"
echo '' >config.mk
@ -108,6 +110,7 @@ putvar CFG_SRC_DIR
putvar CFG_BUILD_DIR
putvar CFG_OSTYPE
putvar CFG_CPUTYPE
putvar CFG_CONFIGURE_ARGS
msg "looking for build programs"
probe_need CFG_GCC gcc