-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (35 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
51 lines (35 loc) · 1.03 KB
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
GO ?= go
SERVER_DIR := examples/coding-agent/server
CLIENT_DIR := examples/coding-agent/client
.PHONY: help verify \
root root-test root-build root-vet \
server server-test server-build server-vet \
client client-test client-build client-vet
help:
@echo "Targets:"
@echo " verify Run full repo + server + client test/build/vet gate"
@echo " root Run root test/build/vet"
@echo " server Run server test/build/vet"
@echo " client Run client test/build/vet"
verify: root server client
root: root-test root-build root-vet
root-test:
$(GO) test ./...
root-build:
$(GO) build ./...
root-vet:
$(GO) vet ./...
server: server-test server-build server-vet
server-test:
cd $(SERVER_DIR) && $(GO) test ./...
server-build:
cd $(SERVER_DIR) && $(GO) build ./...
server-vet:
cd $(SERVER_DIR) && $(GO) vet ./...
client: client-test client-build client-vet
client-test:
cd $(CLIENT_DIR) && $(GO) test ./...
client-build:
cd $(CLIENT_DIR) && $(GO) build ./...
client-vet:
cd $(CLIENT_DIR) && $(GO) vet ./...