diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2018-10-03 05:14:40 -0700 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2018-10-03 05:14:40 -0700 |
commit | 62d19032621c7db801b313a1e19e787cfb1fbc3e (patch) | |
tree | d2181b6b09f8cbbaf32a4dff72e9d64675a243bb /Makefile | |
parent | 0f731471ab258d9e01658f0ab70f8317fd0fb89c (diff) |
Omit message factory and line numbers from generated output
Change-Id: Ie48cc0a641242625daf55caf00ab630e78aa86b7
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 62 |
1 files changed, 40 insertions, 22 deletions
@@ -1,34 +1,52 @@ -build: - @cd cmd/binapi-generator && go build -v - @cd examples/cmd/simple-client && go build -v - @cd examples/cmd/stats-client && go build -v - @cd examples/cmd/perf-bench && go build -v +VERSION ?= $(shell git describe --always --tags --dirty) -test: - @cd cmd/binapi-generator && go test -cover . - @cd core && go test -cover . +all: test build examples install: - @cd cmd/binapi-generator && go install -v + @echo "=> installing ${VERSION}" + go install ./cmd/binapi-generator + +build: + @echo "=> building ${VERSION}" + cd cmd/binapi-generator && go build -v + +examples: + @echo "=> building examples" + cd examples/cmd/simple-client && go build -v + cd examples/cmd/stats-client && go build -v + cd examples/cmd/perf-bench && go build -v + +test: + @echo "=> testing" + go test -cover ./cmd/... + go test -cover ./core ./api ./codec extras: - @cd extras/libmemif/examples/raw-data && go build -v - @cd extras/libmemif/examples/icmp-responder && go build -v - @cd extras/libmemif/examples/gopacket && go build -v - @cd extras/libmemif/examples/jumbo-frames && go build -v + @echo "=> building extras" + cd extras/libmemif/examples/gopacket && go build -v + cd extras/libmemif/examples/icmp-responder && go build -v + cd extras/libmemif/examples/jumbo-frames && go build -v + cd extras/libmemif/examples/raw-data && go build -v clean: - @rm -f cmd/binapi-generator/binapi-generator - @rm -f examples/cmd/simple-client/simple-client - @rm -f examples/cmd/stats-client/stats-client - @rm -f examples/cmd/perf-bench/perf-bench - @rm -f extras/libmemif/examples/raw-data/raw-data - @rm -f extras/libmemif/examples/icmp-responder/icmp-responder + @echo "=> cleaning" + rm -f cmd/binapi-generator/binapi-generator + rm -f examples/cmd/perf-bench/perf-bench + rm -f examples/cmd/simple-client/simple-client + rm -f examples/cmd/stats-client/stats-client + rm -f extras/libmemif/examples/gopacket/gopacket + rm -f extras/libmemif/examples/icmp-responder/icmp-responder + rm -f extras/libmemif/examples/jumbo-frames/jumbo-frames + rm -f extras/libmemif/examples/raw-data/raw-data -generate: - @cd examples && go generate ./... +generate: install + @echo "=> generating code" + cd examples && go generate ./... lint: + @echo "=> running linter" @golint ./... | grep -v vendor | grep -v bin_api || true -.PHONY: build test install extras clean generate +.PHONY: all \ + install build examples test \ + extras clean generate lint |