Somewhat better version handling
This commit is contained in:
parent
e7596e41f7
commit
f5de8d1f37
5 changed files with 19 additions and 12 deletions
|
|
@ -1,7 +1,10 @@
|
|||
NAME = rexserver
|
||||
|
||||
VERSION_FILE := ../VERSION.txt
|
||||
REX_VERSION ?= $(shell cat $(VERSION_FILE))
|
||||
|
||||
build: commit.txt
|
||||
go build -o $(NAME)
|
||||
go build -ldflags="-X main.rex_version=$(REX_VERSION)" -o $(NAME)
|
||||
|
||||
run: commit.txt
|
||||
go run .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue