15 lines
343 B
Makefile
15 lines
343 B
Makefile
COMMIT := $(shell git rev-list -1 HEAD)
|
|
VERSION := $(shell cat ./version)
|
|
GOPATH := $(shell go env GOPATH)
|
|
|
|
all: run
|
|
|
|
run:
|
|
go run -ldflags="-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'" ./cmd/abra
|
|
|
|
install:
|
|
go install -ldflags="-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'" ./cmd/abra
|
|
|
|
clean:
|
|
rm '$(GOPATH)/bin/abra'
|