21 lines
930 B
Makefile
21 lines
930 B
Makefile
DEVP_OGEN_VERSION = v1.18.0
|
|
DEVP_OGEN_DIR = ${DEVP_TOOLS_ROOT}/ogen/${DEVP_OGEN_VERSION}
|
|
DEVP_OGEN_EXE = ${DEVP_OGEN_DIR}/ogen
|
|
|
|
${DEVP_OGEN_EXE}:
|
|
ifdef DEVP_NO_INSTALL
|
|
ifneq ($(DEVP_VERSION),$(DEVP_CI_BUILDER_VERSION))
|
|
$(call error_message,"Platform version is [${DEVP_VERSION}] image version is [${DEVP_CI_BUILDER_VERSION}]. Same version is expected. Updating with [make devp/update] might help. DEVP_NO_INSTALL == 1. See: https://mws.pages.mws-team.ru/devp/platform-go-tools/pgt/user/pages/platform-update.html")
|
|
@exit 1
|
|
endif
|
|
$(call error_message,"[ogen] is expected to be installed but it is not. Please contact /duty golang for support.")
|
|
@exit 1
|
|
endif
|
|
$(Q) mkdir -p ${DEVP_OGEN_DIR}
|
|
$(Q) CGO_ENABLED=0 GOBIN=${DEVP_OGEN_DIR} go install github.com/ogen-go/ogen/cmd/ogen@${DEVP_OGEN_VERSION}
|
|
$(call green,"ogen installed as $@")
|
|
|
|
.PHONY: devp/install/ogen
|
|
devp/install/ogen: ${DEVP_OGEN_EXE}
|
|
@# Install ogen - v1.18.0
|