X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=Makefile;h=4eed58d534eb4863c5a871accb1470ec3537bd16;hb=3da2b73ec5ce77abf796ebeae6dfc149c8d3c698;hp=8d3a4ec5ea71de8c2ba67a12da889a9922186057;hpb=a0a94bddaf7b1ecf6c0c6f509315efd7b7dc0a48;p=govpp.git diff --git a/Makefile b/Makefile index 8d3a4ec..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 . 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