X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=Makefile;h=4eed58d534eb4863c5a871accb1470ec3537bd16;hb=e44d8c3905e22f940a100e6331a45412cba9d47e;hp=8c46793548c05dacb304afd70278f07f807dec8b;hpb=8b357abc45a7fa5134624578f3f2343b6cc04395;p=govpp.git diff --git a/Makefile b/Makefile index 8c46793..4eed58d 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,34 @@ build: - @cd binapi_generator && go build -v + @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 test: - @cd binapi_generator && go test -cover + @cd cmd/binapi-generator && go test -cover . @cd api && go test -cover ./... - @cd core && go test -cover + @cd core && go test -cover . install: - @cd binapi_generator && go install -v + @cd cmd/binapi-generator && go install -v + +extras: + @cd extras/libmemif/examples/raw-data && go build -v + @cd extras/libmemif/examples/icmp-responder && go build -v clean: - @rm binapi_generator/binapi_generator + @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 + +generate: + @cd core && go generate ./... + @cd examples && go generate ./... + +lint: + @golint ./... | grep -v vendor | grep -v bin_api || true -.PHONY: build test install clean +.PHONY: build test install extras clean generate