forked from envoyproxy/go-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (61 loc) · 2.22 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.DEFAULT_GOAL := build
#------------------------------------------------------------------------------
# Variables
#------------------------------------------------------------------------------
SHELL := /bin/bash
BINDIR := bin
PKG := github.com/envoyproxy/go-control-plane
.PHONY: build
build:
@go build ./pkg/... ./envoy/...
.PHONY: test
test:
@go test ./pkg/...
.PHONY: cover
cover:
@build/coverage.sh
.PHONY: format
format:
@goimports -local $(PKG) -w -l pkg
.PHONY: create_version
create_version:
./scripts/create_version.sh
.PHONY: check_version_dirty
check_version_dirty:
./scripts/check_version_dirty.sh
.PHONY: examples
examples:
@pushd examples/dyplomat && go build ./... && popd
#-----------------
#-- integration
#-----------------
.PHONY: $(BINDIR)/test $(BINDIR)/upstream integration integration.ads integration.ads.v3 integration.xds integration.xds.v3 integration.rest integration.rest.v3 integration.ads.tls integration.xds.mux.v3
$(BINDIR)/upstream:
@go build -race -o $@ internal/upstream/main.go
$(BINDIR)/test:
@go build -race -o $@ pkg/test/main/main.go
integration: integration.xds integration.xds.v3 integration.ads integration.ads.v3 integration.rest integration.rest.v3 integration.ads.tls
integration.ads: $(BINDIR)/test $(BINDIR)/upstream
env XDS=ads build/integration.sh
integration.ads.v3: $(BINDIR)/test $(BINDIR)/upstream
env XDS=ads SUFFIX=v3 build/integration.sh
integration.xds: $(BINDIR)/test $(BINDIR)/upstream
env XDS=xds build/integration.sh
integration.xds.v3: $(BINDIR)/test $(BINDIR)/upstream
env XDS=xds SUFFIX=v3 build/integration.sh
integration.rest: $(BINDIR)/test $(BINDIR)/upstream
env XDS=rest build/integration.sh
integration.rest.v3: $(BINDIR)/test $(BINDIR)/upstream
env XDS=rest SUFFIX=v3 build/integration.sh
integration.ads.tls: $(BINDIR)/test $(BINDIR)/upstream
env XDS=ads build/integration.sh -tls
integration.xds.mux.v3: $(BINDIR)/test $(BINDIR)/upstream
env XDS=xds SUFFIX=v3 build/integration.sh -mux
#--------------------------------------
#-- example xDS control plane server
#--------------------------------------
.PHONY: $(BINDIR)/example example
$(BINDIR)/example:
@go build -race -o $@ internal/example/main/main.go
example: $(BINDIR)/example
@build/example.sh