-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
30 lines (26 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# build/debugging
ifeq ($(V),1)
Q :=
else
Q := @
endif
include build/Makefile.gobin
clean: clean-go-binaries clean-pbgo
build: build-go-binaries
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 (all code generation also happens)"
$(Q)echo " check - Runs linters and code checks"
$(Q)echo " clean - Cleans up binaries and generated code"
$(Q)echo " help - Prints this help message"
$(Q)echo " test - Runs all unit tests"
.PHONY: $(PHONY)
.DEFAULT_GOAL = build