support for shm prefixes
[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 api && go test -cover ./...
10         @cd core && go test -cover .
11
12 install:
13         @cd cmd/binapi-generator && go install -v
14
15 extras:
16         @cd extras/libmemif/examples/raw-data && go build -v
17         @cd extras/libmemif/examples/icmp-responder && go build -v
18
19 clean:
20         @rm -f cmd/binapi-generator/binapi-generator
21         @rm -f examples/cmd/simple-client/simple-client
22         @rm -f examples/cmd/stats-client/stats-client
23         @rm -f examples/cmd/perf-bench/perf-bench
24         @rm -f extras/libmemif/examples/raw-data/raw-data
25         @rm -f extras/libmemif/examples/icmp-responder/icmp-responder
26
27 generate:
28         @cd core && go generate ./...
29         @cd examples && go generate ./...
30
31 lint:
32         @golint ./... | grep -v vendor | grep -v bin_api || true
33
34 .PHONY: build test install extras clean generate