From 9292409f21393ec539cdf40720d26b43914f6018 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 3 Apr 2016 23:46:20 +0200 Subject: Add WITHOUT variable to exclude components on build This allows to ignore lines from the default build.config if needed. For example to not include packages run make WITHOUT=index --- core/core.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/core.mk') diff --git a/core/core.mk b/core/core.mk index 278e20f..89cfa25 100644 --- a/core/core.mk +++ b/core/core.mk @@ -29,6 +29,9 @@ 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)) @@ -184,13 +187,16 @@ 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: 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) + $(MAKE) -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(WITHOUT)' cp $(ERLANG_MK_BUILD_DIR)/erlang.mk ./erlang.mk rm -rf $(ERLANG_MK_BUILD_DIR) -- cgit v1.2.3