s/service/hwt/
This commit is contained in:
parent
8f3623ac1a
commit
db3de8c61f
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
service.pb.go
|
hwt.pb.go
|
||||||
service.twirp.go
|
hwt.twirp.go
|
||||||
vendor
|
vendor
|
||||||
|
20
Makefile
20
Makefile
@ -4,23 +4,25 @@ 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: vendor $(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: vendor $(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: hwt.twirp.go hwt.pb.go
|
||||||
|
|
||||||
service.twirp.go: service.proto
|
hwt.twirp.go: hwt.proto
|
||||||
protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./service.proto
|
@echo "generating twirp file"
|
||||||
|
@protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./hwt.proto
|
||||||
|
|
||||||
service.pb.go: service.proto
|
hwt.pb.go: hwt.proto
|
||||||
protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./service.proto
|
@echo "generating pb file"
|
||||||
|
@protoc --proto_path=${GOPATH}/src:. --twirp_out=. --go_out=. ./hwt.proto
|
||||||
|
|
||||||
vendor: Gopkg.toml Gopkg.lock service.twirp.go service.pb.go
|
vendor: Gopkg.toml Gopkg.lock hwt.twirp.go hwt.pb.go
|
||||||
dep ensure
|
dep ensure
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@rm -f service.{twirp,pb}.go
|
@rm -f hwt.{twirp,pb}.go
|
||||||
@rm -rf vendor
|
@rm -rf vendor
|
||||||
|
Loading…
Reference in New Issue
Block a user