aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-05 15:37:17 +0100
committerLoïc Hoguin <[email protected]>2018-12-05 17:47:32 +0100
commit385d9afa7e025cd5928cd67108d409ba1e25e8e7 (patch)
treed36ecba6c43644d2cb4836b399df3c4353157433 /core
parentbf0aa305193f0b6be6738945795cc55bd42e28fd (diff)
downloaderlang.mk-385d9afa7e025cd5928cd67108d409ba1e25e8e7.tar.gz
erlang.mk-385d9afa7e025cd5928cd67108d409ba1e25e8e7.tar.bz2
erlang.mk-385d9afa7e025cd5928cd67108d409ba1e25e8e7.zip
Better handle ERLANG_OTP and ERLANG_HIPE
A release that gets removed in a ci:: preceding the running of CI rules would end up not rebuilding it due to how a warning was silenced when using ERLANG_OTP.
Diffstat (limited to 'core')
-rw-r--r--core/kerl.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/kerl.mk b/core/kerl.mk
index c8fdc1e..b514052 100644
--- a/core/kerl.mk
+++ b/core/kerl.mk
@@ -21,20 +21,20 @@ KERL_MAKEFLAGS ?=
OTP_GIT ?= https://github.com/erlang/otp
define kerl_otp_target
-ifeq ($(wildcard $(KERL_INSTALL_DIR)/$(1)),)
$(KERL_INSTALL_DIR)/$(1): $(KERL)
- MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $(1) $(1)
- $(KERL) install $(1) $(KERL_INSTALL_DIR)/$(1)
-endif
+ $(verbose) if [ ! -d $$@ ]; then \
+ MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $(1) $(1); \
+ $(KERL) install $(1) $(KERL_INSTALL_DIR)/$(1); \
+ fi
endef
define kerl_hipe_target
-ifeq ($(wildcard $(KERL_INSTALL_DIR)/$1-native),)
$(KERL_INSTALL_DIR)/$1-native: $(KERL)
- KERL_CONFIGURE_OPTIONS=--enable-native-libs \
- MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $1 $1-native
- $(KERL) install $1-native $(KERL_INSTALL_DIR)/$1-native
-endif
+ $(verbose) if [ ! -d $$@ ]; then \
+ KERL_CONFIGURE_OPTIONS=--enable-native-libs \
+ MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $1 $1-native; \
+ $(KERL) install $1-native $(KERL_INSTALL_DIR)/$1-native; \
+ fi
endef
$(KERL): $(KERL_DIR)