mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-25 13:48:49 +08:00
use ldflag in makefile
This commit is contained in:
parent
7dd2a4f40e
commit
a967c3d6e5
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ $(INSTALL_DIR):
|
||||
|
||||
build: $(BIN_DIR)
|
||||
@echo === BUILDING ===
|
||||
${GO} build -v -o $(BIN_DIR)/$(BIN_NAME)
|
||||
${GO} build -ldflags "-X main.VERSION=${VERSION}" -v -o $(BIN_DIR)/$(BIN_NAME)
|
||||
|
||||
install: build $(INSTALL_DIR)
|
||||
@echo === INSTALLING ===
|
||||
|
2
gomu.go
2
gomu.go
@ -7,7 +7,7 @@ import (
|
||||
"github.com/ztrue/tracerr"
|
||||
)
|
||||
|
||||
const VERSION = "v1.5.5"
|
||||
var VERSION = "N/A"
|
||||
|
||||
var gomu *Gomu
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user