-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
43 lines (31 loc) · 891 Bytes
/
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
.PHONY: ent tbls swag vendor test build gen run local_functional_test
ent:
docker-compose run ent
tbls:
docker-compose run tbls
swag:
docker-compose run swag
vendor:
go mod tidy
go mod vendor
test:
go test -race -covermode=atomic -coverprofile=coverage.txt ./pkg/...
build:
go build -o build/dataplane ./cmd/dataplane
go build -o build/controlplane ./cmd/controlplane
go build -o build/proxyplane ./cmd/proxyplane
gen: ent swag
local_functional_test:
go clean -testcache
go test ./functional_test/...
run:
go build -o build/dataplane ./cmd/dataplane
go build -o build/controlplane ./cmd/controlplane
OPV_DB_CONNECTION_STR="_opv.sqlite?cache=shared&_fk=1" $(MAKE) -j _run_controlplane _run_dataplane
run_proxyplane:
go build -o build/proxyplane ./cmd/proxyplane
./build/proxyplane
_run_dataplane:
./build/dataplane
_run_controlplane:
./build/controlplane