Fixes makefile, adds dep ensure
This commit is contained in:
parent
9c16f50867
commit
0006d1592a
7
Makefile
7
Makefile
@ -3,10 +3,10 @@ rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst
|
|||||||
|
|
||||||
default: ${GOPATH}/bin/hwtd ${GOPATH}/bin/hwtc
|
default: ${GOPATH}/bin/hwtd ${GOPATH}/bin/hwtc
|
||||||
|
|
||||||
${GOPATH}/bin/hwtd: $(call rwildcard,,*.go) hwt.go
|
${GOPATH}/bin/hwtd: vendor $(call rwildcard,,*.go) hwt.go
|
||||||
go install -v mcquay.me/hwt/cmd/hwtd
|
go install -v mcquay.me/hwt/cmd/hwtd
|
||||||
|
|
||||||
${GOPATH}/bin/hwtc: $(call rwildcard,,*.go) hwt.go
|
${GOPATH}/bin/hwtc: vendor $(call rwildcard,,*.go) hwt.go
|
||||||
go install -v mcquay.me/hwt/cmd/hwtc
|
go install -v mcquay.me/hwt/cmd/hwtc
|
||||||
|
|
||||||
hwt.go: service.twirp.go service.pb.go
|
hwt.go: service.twirp.go service.pb.go
|
||||||
@ -16,3 +16,6 @@ service.twirp.go: service.proto
|
|||||||
|
|
||||||
service.pb.go: service.proto
|
service.pb.go: service.proto
|
||||||
protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./service.proto
|
protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./service.proto
|
||||||
|
|
||||||
|
vendor: Gopkg.toml Gopkg.lock service.twirp.go service.pb.go
|
||||||
|
dep ensure
|
||||||
|
Loading…
Reference in New Issue
Block a user