make api.Channel as interface
[govpp.git] / Makefile
1 build:
2         @cd cmd/binapi-generator && go build -v
3         @cd examples/cmd/simple-client && go build -v
4         @cd examples/cmd/stats-client && go build -v
5         @cd examples/cmd/perf-bench && go build -v
6
7 test:
8         @cd cmd/binapi-generator && go test -cover .
9         @cd core && go test -cover .
10
11 install:
12         @cd cmd/binapi-generator && go install -v
13
14 extras:
15         @cd extras/libmemif/examples/raw-data && go build -v
16         @cd extras/libmemif/examples/icmp-responder && go build -v
17
18 clean:
19         @rm -f cmd/binapi-generator/binapi-generator
20         @rm -f examples/cmd/simple-client/simple-client
21         @rm -f examples/cmd/stats-client/stats-client
22         @rm -f examples/cmd/perf-bench/perf-bench
23         @rm -f extras/libmemif/examples/raw-data/raw-data
24         @rm -f extras/libmemif/examples/icmp-responder/icmp-responder
25
26 generate:
27         @cd core && go generate ./...
28         @cd examples && go generate ./...
29
30 lint:
31         @golint ./... | grep -v vendor | grep -v bin_api || true
32
33 .PHONY: build test install extras clean generate