diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2020-03-18 08:52:42 +0100 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-03-18 08:52:42 +0100 |
commit | d4d3b9c6fa67fe454f8d8adc7502b3b645ecab10 (patch) | |
tree | 17f421e8bcfd5a3ba15372bd6b5830946ac6cd2f /Makefile | |
parent | 2df59463fcbb1a5aec2173712b32fb9740157a9d (diff) |
Release 0.3.0v0.3.0
- regenerate examples/binapi for latest VPP from stable/2001
- add import-prefix flag to set custom prefix (fallbacks to using go list)
Change-Id: Ib09f134cf9662e348be2575448964de2b9e5c1ee
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -75,19 +75,25 @@ lint: ## Run code linter @echo "# running linter" @golint ./... +install: install-generator install-proxy ## Install all + install-generator: ## Install binapi-generator @echo "# installing binapi-generator ${VERSION}" $(GO) install ${GO_BUILD_ARGS} ./cmd/binapi-generator -generate: ## Generate code +install-proxy: ## Install vpp-proxy + @echo "# installing vpp-proxy ${VERSION}" + $(GO) install ${GO_BUILD_ARGS} ./cmd/vpp-proxy + +generate: ## Generate all @echo "# generating code" $(GO) generate -x ./... -generate-binapi: install-generator +generate-binapi: install-generator ## Generate binapi code @echo "# generating binapi VPP $(VPP_VERSION)" $(GO) generate -x "$(BINAPI_DIR)" -gen-binapi-docker: install-generator +gen-binapi-docker: install-generator ## Generate binapi code (using Docker) @echo "# generating binapi in docker image ${VPP_IMG}" $(eval cmds := $(shell go generate -n $(BINAPI_DIR) 2>&1 | tr "\n" ";")) docker run -t --rm \ @@ -105,6 +111,7 @@ extras: .PHONY: help \ build cmd examples clean \ lint test integration \ - install-generator generate generate-binapi gen-binapi-docker \ + install install-generator install-proxy \ + generate generate-binapi gen-binapi-docker \ extras |