From 0bfda2ae8077986ddb0adc947f40522725619213 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Wed, 2 Oct 2019 21:24:02 +0800 Subject: [PATCH] update at 2019-10-02 21:24:02 by ehlxr --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2ec45e2..94356bf 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ COMMIT_SHA1 := $(shell git rev-parse HEAD) ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/ DIST_DIR := $(ROOT_DIR)/dist/ -VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/cmd -LD_GIT_COMMIT := -X '$(VERSION_PATH).GitCommit=$(COMMIT_SHA1)' -LD_BUILD_TIME := -X '$(VERSION_PATH).BuildTime=$(BUILD_TIME)' -LD_GO_VERSION := -X '$(VERSION_PATH).GoVersion=`go version`' -LD_GATEWAY_VERSION := -X '$(VERSION_PATH).Version=$(BUILD_VERSION)' -LD_FLAGS := "$(LD_GIT_COMMIT) $(LD_BUILD_TIME) $(LD_GO_VERSION) $(LD_GATEWAY_VERSION) -w -s" +VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/cmd +LD_GIT_COMMIT := -X '$(VERSION_PATH).GitCommit=$(COMMIT_SHA1)' +LD_BUILD_TIME := -X '$(VERSION_PATH).BuildTime=$(BUILD_TIME)' +LD_GO_VERSION := -X '$(VERSION_PATH).GoVersion=`go version`' +LD_VERSION := -X '$(VERSION_PATH).Version=$(BUILD_VERSION)' +LD_FLAGS := "$(LD_GIT_COMMIT) $(LD_BUILD_TIME) $(LD_GO_VERSION) $(LD_VERSION) -w -s" .PHONY : build release clean install upx