0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix ci-prepare when OTP builds exist

This commit is contained in:
Loïc Hoguin 2015-07-21 21:23:41 +02:00
parent 902f8469aa
commit 889601751d

2
erlang.mk vendored
View file

@ -5386,9 +5386,11 @@ endef
$(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp)))) $(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp))))
define ci_otp_target define ci_otp_target
ifeq ($(wildcard $(CI_INSTALL_DIR)/$(1)),)
$(CI_INSTALL_DIR)/$(1): $(KERL) $(CI_INSTALL_DIR)/$(1): $(KERL)
$(KERL) build git $(OTP_GIT) $(1) $(1) $(KERL) build git $(OTP_GIT) $(1) $(1)
$(KERL) install $(1) $(CI_INSTALL_DIR)/$(1) $(KERL) install $(1) $(CI_INSTALL_DIR)/$(1)
endif
endef endef
$(foreach otp,$(CI_OTP),$(eval $(call ci_otp_target,$(otp)))) $(foreach otp,$(CI_OTP),$(eval $(call ci_otp_target,$(otp))))