Add basic makefile with build and install targets
This commit is contained in:
parent
5c549ad8c3
commit
0e9082aab7
1 changed files with 9 additions and 0 deletions
9
Makefile
Normal file
9
Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
VERSION := $(shell git describe --always --long --dirty --tags)
|
||||
|
||||
build:
|
||||
go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
||||
|
||||
install:
|
||||
go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
||||
|
||||
.PHONY: install
|
Loading…
Add table
Reference in a new issue