-
Notifications
You must be signed in to change notification settings - Fork 73
/
Makefile
51 lines (40 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
build: test
go build ./app/...
go mod tidy
test: buildrunlocal buildrunwebsockets buildtcpbridge
go test -count 1 ./agent/agent_test.go
go test ./agent/...
go test ./utils/...
go mod tidy
buildtcpbridge: vet
go build -o ${GOPATH}/bin/tcp-bridge-frontend ./utils/tcpbridge/tcp-bridge-frontend
go build -o ${GOPATH}/bin/tcp-bridge-backend ./utils/tcpbridge/tcp-bridge-backend
go mod tidy
buildrunlocal: buildagent buildserver
go build -o ${GOPATH}/bin/inverting-proxy-run-local ./testing/runlocal/main.go
go mod tidy
buildrunwebsockets: buildagent buildserver
go build -o ${GOPATH}/bin/inverting-proxy-run-websockets ./testing/websockets/main.go
go build -o ${GOPATH}/bin/example-websocket-server ./testing/websockets/example/main.go
go mod tidy
buildagent: vet
go build -o ${GOPATH}/bin/proxy-forwarding-agent ./agent/agent.go
go mod tidy
buildserver: vet
go build -o ${GOPATH}/bin/inverting-proxy ./server/server.go
go mod tidy
vet: deps
go vet ./agent/...
go vet ./app/...
go vet ./utils/...
go mod tidy
deps: fmt
go get ./...
go mod tidy
fmt: FORCE
gofmt -w ./
go mod tidy
deploy:
if [ -z "${PROJECT_ID}" ]; then echo "You must specify the PROJECT_ID"; exit 1; fi
gcloud app deploy --project "${PROJECT_ID}" --version v1 ./app/*.yaml
FORCE: