DEVP_LINT_VERSION = v${DEVP_VERSION} DEVP_LINT_DIR = ${DEVP_TOOLS_ROOT}/devplint/${DEVP_LINT_VERSION} DEVP_LINT_EXE = ${DEVP_LINT_DIR}/devplint ${DEVP_LINT_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,"[devplint] is expected to be installed but it is not. Please contact /duty golang for support.") @exit 1 endif $(Q) mkdir -p ${DEVP_LINT_DIR} $(Q) CGO_ENABLED=0 GOBIN=${DEVP_LINT_DIR} go install git.mws-team.ru/mws/devp/platform-go-tools/cmd/devplint@${DEVP_LINT_VERSION} $(call green,"devplint installed as $@") .PHONY: devp/install/devplint devp/install/devplint: ${DEVP_LINT_EXE} @# Install devplint - v${DEVP_VERSION}