Browse Source

Add KERL_MAKEFLAGS option

Loïc Hoguin 8 years ago
parent
commit
2a06471461
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/ci.mk

+ 3 - 1
plugins/ci.mk

@@ -18,6 +18,8 @@ export KERL
 KERL_GIT ?= https://github.com/kerl/kerl
 KERL_GIT ?= https://github.com/kerl/kerl
 KERL_COMMIT ?= master
 KERL_COMMIT ?= master
 
 
+KERL_MAKEFLAGS ?=
+
 OTP_GIT ?= https://github.com/erlang/otp
 OTP_GIT ?= https://github.com/erlang/otp
 
 
 CI_INSTALL_DIR ?= $(HOME)/erlang
 CI_INSTALL_DIR ?= $(HOME)/erlang
@@ -46,7 +48,7 @@ $(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp))))
 define ci_otp_target
 define ci_otp_target
 ifeq ($(wildcard $(CI_INSTALL_DIR)/$(1)),)
 ifeq ($(wildcard $(CI_INSTALL_DIR)/$(1)),)
 $(CI_INSTALL_DIR)/$(1): $(KERL)
 $(CI_INSTALL_DIR)/$(1): $(KERL)
-	$(KERL) build git $(OTP_GIT) $(1) $(1)
+	MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $(1) $(1)
 	$(KERL) install $(1) $(CI_INSTALL_DIR)/$(1)
 	$(KERL) install $(1) $(CI_INSTALL_DIR)/$(1)
 endif
 endif
 endef
 endef