diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b059242 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file