-build:
- @echo "=> building binapi-generator ${VERSION}"
- cd cmd/binapi-generator && $(GO) build ${GO_BUILD_ARGS}
-
-examples:
- @echo "=> building examples"
- cd examples/perf-bench && $(GO) build ${GO_BUILD_ARGS} -v
- cd examples/rpc-service && $(GO) build ${GO_BUILD_ARGS} -v
- cd examples/simple-client && $(GO) build ${GO_BUILD_ARGS} -v
- cd examples/stats-client && $(GO) build ${GO_BUILD_ARGS} -v
- cd examples/union-example && $(GO) build ${GO_BUILD_ARGS} -v
-
-clean:
- @echo "=> cleaning"
- go clean -v ./cmd/...
- go clean -v ./examples/...
-
-test:
- @echo "=> running tests"
- $(GO) test ${GO_BUILD_ARGS} ./cmd/...
- $(GO) test ${GO_BUILD_ARGS} ./ ./api ./adapter ./codec ./core
-
-test-integration:
- @echo "=> running integration tests"
- $(GO) test ${GO_BUILD_ARGS} ./test/integration
-
-lint:
- @echo "=> running linter"
- @golint ./... | grep -v vendor | grep -v /binapi/ || true
-
-gen-binapi-docker: install
- @echo "=> generating binapi in docker image ${VPP_IMG}"
+generate: ## Generate code
+ @echo "# generating code"
+ $(GO) generate -x ./...
+
+generate-binapi: install-generator
+ @echo "# generating binapi VPP $(VPP_VERSION)"
+ $(GO) generate -x "$(BINAPI_DIR)"
+
+gen-binapi-docker: install-generator
+ @echo "# generating binapi in docker image ${VPP_IMG}"