forked from coop-cloud/abra
Parametrize the abra path
This commit is contained in:
parent
462a4d296f
commit
567dae83cf
7
Makefile
7
Makefile
@ -2,17 +2,18 @@ COMMIT := $(shell git rev-list -1 HEAD)
|
||||
VERSION := $(shell cat ./version)
|
||||
GOPATH := $(shell go env GOPATH)
|
||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'"
|
||||
ABRA := ./cmd/abra
|
||||
|
||||
all: run install build clean
|
||||
|
||||
run:
|
||||
go run -ldflags=$(LDFLAGS) ./cmd/abra
|
||||
go run -ldflags=$(LDFLAGS) $(ABRA)
|
||||
|
||||
install:
|
||||
go install -ldflags=$(LDFLAGS) ./cmd/abra
|
||||
go install -ldflags=$(LDFLAGS) $(ABRA)
|
||||
|
||||
build:
|
||||
go build -ldflags=$(LDFLAGS) ./cmd/abra
|
||||
go build -ldflags=$(LDFLAGS) $(ABRA)
|
||||
|
||||
clean:
|
||||
rm '$(GOPATH)/bin/abra'
|
||||
|
Loading…
Reference in New Issue
Block a user