| # build/debugging |
| ifeq ($(V),1) |
| Q := |
| else |
| Q := @ |
| endif |
| |
| include build/Makefile.gobin |
| |
| clean: clean-go-binaries clean-pbgo clean-binpb |
| build: build-go-binaries |
| gen: gen-binpb gen-pbgo |
| test: go-unit-tests |
| check: go-lint |
| |
| help: |
| $(Q)echo "VARIABLES:" |
| $(Q)echo " ARTIFACTS - Destination of test result files when invoking \"test\" target, a temporary" |
| $(Q)echo " directory will be created if the variable is not set." |
| $(Q)echo " V - Runs the build system in verbose mode i.e. V=1 make" |
| $(Q)echo " VERSION - Sets the main.version flag for all binaries, defaults to \"dev\"" |
| $(Q)echo " " |
| $(Q)echo "GENERAL TARGETS:" |
| $(Q)echo " build - Builds all binary artifacts" |
| $(Q)echo " check - Runs linters and code checks" |
| $(Q)echo " clean - Cleans up binaries and generated code" |
| $(Q)echo " gen - Generates binpb and pb.go files" |
| $(Q)echo " help - Prints this help message" |
| $(Q)echo " test - Runs all unit tests" |
| |
| .PHONY: $(PHONY) |
| .DEFAULT_GOAL = build |