update at 2019-11-22 18:14:17 by ehlxr

This commit is contained in:
ehlxr 2019-11-22 18:14:17 +08:00
parent c441f95a2c
commit 0b4c02be64

View File

@ -4,8 +4,8 @@ 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}')/ VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/pkg
VERSION_PATH := main #VERSION_PATH := main
LD_APP_NAMW := -X '$(VERSION_PATH).AppName=$(shell basename `pwd`)' LD_APP_NAMW := -X '$(VERSION_PATH).AppName=$(shell basename `pwd`)'
LD_GIT_COMMIT := -X '$(VERSION_PATH).GitCommit=$(COMMIT_SHA1)' LD_GIT_COMMIT := -X '$(VERSION_PATH).GitCommit=$(COMMIT_SHA1)'
LD_BUILD_TIME := -X '$(VERSION_PATH).BuildTime=$(BUILD_TIME)' LD_BUILD_TIME := -X '$(VERSION_PATH).BuildTime=$(BUILD_TIME)'