diff options
Diffstat (limited to 'core/core.mk')
-rw-r--r-- | core/core.mk | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/core.mk b/core/core.mk index 89cfa25..63265d3 100644 --- a/core/core.mk +++ b/core/core.mk @@ -18,6 +18,7 @@ ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST))) export ERLANG_MK_FILENAME ERLANG_MK_VERSION = rolling +ERLANG_MK_WITHOUT = # Make 3.81 and 3.82 are deprecated. @@ -29,9 +30,6 @@ ifeq ($(MAKE_VERSION),3.82) $(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html) endif -# Ignored plugins -ERLANG_MK_WITHOUT = "" - # Core configuration. PROJECT ?= $(notdir $(CURDIR)) @@ -187,16 +185,14 @@ ERLANG_MK_COMMIT ?= ERLANG_MK_BUILD_CONFIG ?= build.config ERLANG_MK_BUILD_DIR ?= .erlang.mk.build -WITHOUT ?= $(ERLANG_MK_WITHOUT) -WITHOUT := $(strip $(WITHOUT)) - +erlang-mk: WITHOUT ?= $(ERLANG_MK_WITHOUT) erlang-mk: git clone $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR) ifdef ERLANG_MK_COMMIT cd $(ERLANG_MK_BUILD_DIR) && git checkout $(ERLANG_MK_COMMIT) endif if [ -f $(ERLANG_MK_BUILD_CONFIG) ]; then cp $(ERLANG_MK_BUILD_CONFIG) $(ERLANG_MK_BUILD_DIR)/build.config; fi - $(MAKE) -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(WITHOUT)' + $(MAKE) -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(strip $(WITHOUT))' cp $(ERLANG_MK_BUILD_DIR)/erlang.mk ./erlang.mk rm -rf $(ERLANG_MK_BUILD_DIR) |