Us go build instead of go install.

Go install places the binaries wherever the GOPATH is set which could be
some non related directory. Rather use go build and place the binaries in
this directory.
This commit is contained in:
Hendrik van Wyk
2019-01-19 14:47:46 +02:00
parent ebcf686c4a
commit ddbaf605ea

View File

@@ -28,11 +28,11 @@
.PHONY: test install gofmt .PHONY: test install gofmt
install: build:
go install ./cmd/invertergui/ go build ./cmd/invertergui/
go install ./cmd/invertercli/ go build ./cmd/invertercli/
all: install gofmt test all: build gofmt test
gofmt: gofmt:
gofmt -l -s -w . gofmt -l -s -w .