diff options
author | Jean Parpaillon <[email protected]> | 2015-10-07 16:48:49 +0200 |
---|---|---|
committer | Jean Parpaillon <[email protected]> | 2015-12-09 22:23:56 +0100 |
commit | 868d77e125a4405a33de1481b229ba6028003475 (patch) | |
tree | 6c480a94f456886d5578c4f5681be1d191f7e224 | |
parent | 89dde87f45c228c04fbd1a9484ce9736637d9cd8 (diff) | |
download | erlang.mk-868d77e125a4405a33de1481b229ba6028003475.tar.gz erlang.mk-868d77e125a4405a33de1481b229ba6028003475.tar.bz2 erlang.mk-868d77e125a4405a33de1481b229ba6028003475.zip |
autopatch: do not run autoreconf if configure script already exists
-rw-r--r-- | core/deps.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/deps.mk b/core/deps.mk index f2b9760..34c4d7b 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -578,10 +578,11 @@ $(DEPS_DIR)/$(call dep_name,$1): exit 17; \ fi $(verbose) mkdir -p $(DEPS_DIR) - $(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$1)),$1) - $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure.ac -o -f $(DEPS_DIR)/$(DEP_NAME)/configure.in ]; then \ - echo " AUTO " $(DEP_STR); \ - cd $(DEPS_DIR)/$(DEP_NAME) && autoreconf -Wall -vif -I m4; \ + $(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$(1))),$(1)) + $(verbose) if [ -f $(DEPS_DIR)/$(1)/configure.ac -o -f $(DEPS_DIR)/$(1)/configure.in ] \ + && [ ! -f $(DEPS_DIR)/$(1)/configure ]; then \ + echo " AUTO " $(1); \ + cd $(DEPS_DIR)/$(1) && autoreconf -Wall -vif -I m4; \ fi - $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure ]; then \ echo " CONF " $(DEP_STR); \ |