update at 2019-11-25 17:25:11 by ehlxr
This commit is contained in:
parent
cf6df1b854
commit
a607ed0a29
4
Makefile
4
Makefile
@ -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)'
|
||||||
|
Loading…
Reference in New Issue
Block a user