Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix binapigen decoding and minor improvements
[govpp.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
c2ae179
..
675deb9
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-38,13
+38,7
@@
endif
VPP_VERSION = $(shell dpkg-query -f '\${Version}' -W vpp)
VPP_IMG ?= ligato/vpp-base:latest
VPP_VERSION = $(shell dpkg-query -f '\${Version}' -W vpp)
VPP_IMG ?= ligato/vpp-base:latest
-BINAPI_DIR ?= ./examples/binapi
-
-help:
- @echo "List of make targets:"
- grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
-
-.DEFAULT = help
+BINAPI_DIR ?= ./binapi
bin:
mkdir -p bin
bin:
mkdir -p bin
@@
-64,6
+58,7
@@
clean: ## Clean all
$(GO) clean -v ./...
test: ## Run unit tests
$(GO) clean -v ./...
test: ## Run unit tests
+ $(GO) version
@echo "# running tests"
$(GO) test -tags="${GO_BUILD_TAGS}" ./...
@echo "# running tests"
$(GO) test -tags="${GO_BUILD_TAGS}" ./...
@@
-79,7
+74,7
@@
install: install-generator install-proxy ## Install all
install-generator: ## Install binapi-generator
@echo "# installing binapi-generator ${VERSION}"
install-generator: ## Install binapi-generator
@echo "# installing binapi-generator ${VERSION}"
- $(GO) install ${GO_BUILD_ARGS} ./cmd/binapi-generator
+
@
$(GO) install ${GO_BUILD_ARGS} ./cmd/binapi-generator
install-proxy: ## Install vpp-proxy
@echo "# installing vpp-proxy ${VERSION}"
install-proxy: ## Install vpp-proxy
@echo "# installing vpp-proxy ${VERSION}"
@@
-99,7
+94,8
@@
gen-binapi-docker: install-generator ## Generate binapi code (using Docker)
docker run -t --rm \
-e DEBUG_GOVPP \
-v "$(shell which binapi-generator):/usr/local/bin/binapi-generator:ro" \
docker run -t --rm \
-e DEBUG_GOVPP \
-v "$(shell which binapi-generator):/usr/local/bin/binapi-generator:ro" \
- -v "$(shell pwd):/govpp" -w /govpp \
+ -v "$(shell pwd):/govpp" \
+ -w /govpp \
-u "$(shell id -u):$(shell id -g)" \
"${VPP_IMG}" \
sh -ec "cd $(BINAPI_DIR) && $(cmds)"
-u "$(shell id -u):$(shell id -g)" \
"${VPP_IMG}" \
sh -ec "cd $(BINAPI_DIR) && $(cmds)"
@@
-107,6
+103,11
@@
gen-binapi-docker: install-generator ## Generate binapi code (using Docker)
extras:
@make -C extras
extras:
@make -C extras
+help:
+ @echo "List of make targets:"
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
+
+.DEFAULT_GOAL = help
.PHONY: help \
build cmd examples clean \
.PHONY: help \
build cmd examples clean \