Debian Codegraph @

plugins/gnostic-go-generator/examples/v2.0/sample/Makefile

raw symbols SCIP
1 build:
2 go get golang.org/x/tools/cmd/goimports
3 go install github.com/googleapis/gnostic
4 go install github.com/googleapis/gnostic/plugins/gnostic-go-generator
5 rm -f $(GOPATH)/bin/gnostic-go-client $(GOPATH)/bin/gnostic-go-server
6 ln -s $(GOPATH)/bin/gnostic-go-generator $(GOPATH)/bin/gnostic-go-client
7 ln -s $(GOPATH)/bin/gnostic-go-generator $(GOPATH)/bin/gnostic-go-server
8
9 all: build
10 gnostic sample.yaml --go-generator-out=sample
11
12 clean:
13 rm -rf sample service/service
14
15 test: all
16 killall service; true # ignore errors due to no matching processes
17 cd service; go get .; go build; ./service &
18 go test
19 killall service
20