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)
|
VERSION := $(shell cat ./version)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'"
|
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'"
|
||||||
|
ABRA := ./cmd/abra
|
||||||
|
|
||||||
all: run install build clean
|
all: run install build clean
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go run -ldflags=$(LDFLAGS) ./cmd/abra
|
go run -ldflags=$(LDFLAGS) $(ABRA)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go install -ldflags=$(LDFLAGS) ./cmd/abra
|
go install -ldflags=$(LDFLAGS) $(ABRA)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -ldflags=$(LDFLAGS) ./cmd/abra
|
go build -ldflags=$(LDFLAGS) $(ABRA)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm '$(GOPATH)/bin/abra'
|
rm '$(GOPATH)/bin/abra'
|
||||||
|
Reference in New Issue
Block a user