mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
embed git revision
This commit is contained in:
parent
afe86778a9
commit
06dd54fc4e
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -1,7 +1,8 @@
|
|||
BIN := mmv
|
||||
VERSION := $$(make -s show-version)
|
||||
VERSION_PATH := cmd/$(BIN)
|
||||
BUILD_LDFLAGS := "-s -w"
|
||||
CURRENT_REVISION := $(shell git rev-parse --short HEAD)
|
||||
BUILD_LDFLAGS := "-s -w -X main.revision=$(CURRENT_REVISION)"
|
||||
GOBIN ?= $(shell go env GOPATH)/bin
|
||||
export GO111MODULE=on
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue