github.com/oam-dev/kubevela@v1.9.11/makefiles/const.mk (about) 1 SHELL := /bin/bash 2 3 GOBUILD_ENV = GO111MODULE=on CGO_ENABLED=0 4 GOX = go run github.com/mitchellh/gox 5 TARGETS := darwin/amd64 linux/amd64 windows/amd64 6 DIST_DIRS := find * -type d -exec 7 8 TIME_LONG = `date +%Y-%m-%d' '%H:%M:%S` 9 TIME_SHORT = `date +%H:%M:%S` 10 TIME = $(TIME_SHORT) 11 12 BLUE := $(shell printf "\033[34m") 13 YELLOW := $(shell printf "\033[33m") 14 RED := $(shell printf "\033[31m") 15 GREEN := $(shell printf "\033[32m") 16 CNone := $(shell printf "\033[0m") 17 18 INFO = echo ${TIME} ${BLUE}[INFO]${CNone} 19 WARN = echo ${TIME} ${YELLOW}[WARN]${CNone} 20 ERR = echo ${TIME} ${RED}[FAIL]${CNone} 21 OK = echo ${TIME} ${GREEN}[ OK ]${CNone} 22 FAIL = (echo ${TIME} ${RED}[FAIL]${CNone} && false) 23 24 25 26 # Vela version 27 VELA_VERSION ?= master 28 # Repo info 29 GIT_COMMIT ?= git-$(shell git rev-parse --short HEAD) 30 GIT_COMMIT_LONG ?= $(shell git rev-parse HEAD) 31 VELA_VERSION_KEY := github.com/oam-dev/kubevela/version.VelaVersion 32 VELA_GITVERSION_KEY := github.com/oam-dev/kubevela/version.GitRevision 33 LDFLAGS ?= "-s -w -X $(VELA_VERSION_KEY)=$(VELA_VERSION) -X $(VELA_GITVERSION_KEY)=$(GIT_COMMIT)" 34 35 36 37 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) 38 ifeq (,$(shell go env GOBIN)) 39 GOBIN=$(shell go env GOPATH)/bin 40 else 41 GOBIN=$(shell go env GOBIN) 42 endif 43 44 # Image URL to use all building/pushing image targets 45 VELA_CORE_IMAGE ?= vela-core:latest 46 VELA_CLI_IMAGE ?= oamdev/vela-cli:latest 47 VELA_CORE_TEST_IMAGE ?= vela-core-test:$(GIT_COMMIT) 48 VELA_APISERVER_IMAGE ?= apiserver:latest 49 RUNTIME_CLUSTER_CONFIG ?= /tmp/worker.client.kubeconfig 50 RUNTIME_CLUSTER_NAME ?= worker