aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-22 17:48:34 +0200
committerLoïc Hoguin <[email protected]>2018-05-22 17:48:34 +0200
commit15ed6df51a45304096329711589e58b1b3e026a7 (patch)
tree0d25dbc723960df3c18862f3ba9c714bb40cdd2d /erlang.mk
parent633aa89f0086ccb82dce6635d10f604e170464af (diff)
downloadcowboy-15ed6df51a45304096329711589e58b1b3e026a7.tar.gz
cowboy-15ed6df51a45304096329711589e58b1b3e026a7.tar.bz2
cowboy-15ed6df51a45304096329711589e58b1b3e026a7.zip
Update Erlang.mk
Includes an experimental change to avoid deleting kerl unnecessarily and/or incorrectly.
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/erlang.mk b/erlang.mk
index 0541d58..db5a27e 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -17,7 +17,7 @@
ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST)))
export ERLANG_MK_FILENAME
-ERLANG_MK_VERSION = 9fff0a1
+ERLANG_MK_VERSION = 2018.05.15-1-g9fff0a1-dirty
ERLANG_MK_WITHOUT =
# Make 3.81 and 3.82 are deprecated.
@@ -216,6 +216,8 @@ ifeq ($(strip $(KERL)),)
KERL := $(ERLANG_MK_TMP)/kerl/kerl
endif
+KERL_DIR = $(ERLANG_MK_TMP)/kerl
+
export KERL
KERL_GIT ?= https://github.com/kerl/kerl
@@ -242,7 +244,9 @@ $(KERL_INSTALL_DIR)/$1-native: $(KERL)
endif
endef
-$(KERL):
+$(KERL): $(KERL_DIR)
+
+$(KERL_DIR):
$(verbose) mkdir -p $(ERLANG_MK_TMP)
$(gen_verbose) git clone --depth 1 $(KERL_GIT) $(ERLANG_MK_TMP)/kerl
$(verbose) cd $(ERLANG_MK_TMP)/kerl && git checkout $(KERL_COMMIT)
@@ -251,7 +255,7 @@ $(KERL):
distclean:: distclean-kerl
distclean-kerl:
- $(gen_verbose) rm -rf $(KERL)
+ $(gen_verbose) rm -rf $(KERL_DIR)
# Allow users to select which version of Erlang/OTP to use for a project.