Add basic makefile with build and install targets

This commit is contained in:
Marc Di Luzio 2020-06-06 18:49:04 +01:00
parent 5c549ad8c3
commit 0e9082aab7

9
Makefile Normal file
View 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