From a607ed0a29201348054722b60cb72fd2af194ca7 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Mon, 25 Nov 2019 17:25:11 +0800 Subject: [PATCH] update at 2019-11-25 17:25:11 by ehlxr --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e7e7958..7de5fa1 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ 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}')/ -VERSION_PATH := main +VERSION_PATH := $(shell cat `go env GOMOD` | awk '/^module/{print $$2}')/pkg +#VERSION_PATH := main LD_APP_NAMW := -X '$(VERSION_PATH).AppName=$(shell basename `pwd`)' LD_GIT_COMMIT := -X '$(VERSION_PATH).GitCommit=$(COMMIT_SHA1)' LD_BUILD_TIME := -X '$(VERSION_PATH).BuildTime=$(BUILD_TIME)'