forked from google/inverting-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.17 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
build: test
go build ./app
go mod tidy
test: buildrunlocal buildrunwebsockets
go test ./agent/banner/...
go test ./agent/sessions/...
go test ./agent/utils/...
go test -count 1 ./agent/agent_test.go
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/banner/...
go vet ./agent/sessions/...
go vet ./agent/utils/...
go vet ./agent/websockets/...
go vet ./agent/agent.go
go vet ./app/...
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: