This repository has been archived on 2021-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
go-abra/Makefile
Roxie Gibson a2a836c2a9
feat: added version and makefile
makefile allows for package variables to be defined
2021-07-13 23:47:47 +01:00

5 lines
165 B
Makefile

COMMIT := $(shell git rev-list -1 HEAD)
VERSION := $(shell cat ./version)
run:
go run -ldflags="-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'" ./cmd/abra