update at 2019-10-04 13:05:45 by ehlxr

This commit is contained in:
ehlxr 2019-10-04 13:05:45 +08:00
parent 5867ecc8d9
commit 52581af8f4

View File

@ -1,7 +1,7 @@
BUILD_VERSION := $(shell cat version) BUILD_VERSION := $(shell cat version)
BUILD_TIME := $(shell date "+%F %T") BUILD_TIME := $(shell date "+%F %T")
COMMIT_SHA1 := $(shell git rev-parse HEAD) COMMIT_SHA1 := $(shell git rev-parse HEAD)
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
DIST_DIR := $(ROOT_DIR)/dist/ DIST_DIR := $(ROOT_DIR)/dist/
VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/cmd VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/cmd