14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- GOLANG_MAKEFILE_KEYS += DEF
18
- GOLANG_DEF_MK_VERSION := v0.1.5
17
+ MAKEFILE_KEYS += GOLANG_DEF
18
+ GOLANG_DEF_MK_FILE := Golang.def.mk
19
+ GOLANG_DEF_MK_VERSION := v0.2.0
20
+ GOLANG_DEF_MK_DESCRIPTION := make target definitions
19
21
20
- .PHONY : all help
22
+ .PHONY : help
21
23
.PHONY : clean distclean realclean
22
24
.PHONY : local unlocal deps tidy fmt be-update generate
23
25
.PHONY : debug build build-all build-amd64 build-arm64
@@ -34,20 +36,20 @@ ifeq (${INCLUDE_DEFAULT_AUTOCOMPLETE_FILE},true)
34
36
AUTOCOMPLETE_FILES += ${INSTALL_AUTOCOMPLETE_PATH}/${BIN_NAME}
35
37
endif
36
38
37
- all : help
38
-
39
39
help :
40
40
@echo " usage: make [target]"
41
41
@echo
42
42
@echo " golang qa targets:"
43
43
@echo " test - perform all available tests"
44
44
@echo " coverage - generate coverage reports"
45
+ @echo " goconvey - start goconvey http://${GOCONVEY_HOST} :${GOCONVEY_PORT} "
45
46
@echo " reportcard - run sanity checks"
46
47
47
48
@echo
48
49
@echo "cleanup targets:"
49
- @echo " clean - cleans package and built files"
50
- @echo " distclean - clean and removes extraneous files"
50
+ @echo " clean - removes CLEAN_FILES (${CLEAN_FILES})"
51
+ @echo " distclean - clean and DISTCLEAN_FILES (${DISTCLEAN_FILES})"
52
+ @echo " realclean - distclean REALCLEAN_FILES (${REALCLEAN_FILES})"
51
53
52
54
@echo
53
55
@echo "build targets:"
@@ -69,11 +71,10 @@ help:
69
71
@echo " install - installs ${BUILD_NAME} to ${DESTDIR}${prefix}/bin/${BIN_NAME}"
70
72
@echo " install-arm64 - installs ${BIN_NAME}.${BUILD_OS}.arm64 to ${DESTDIR}${prefix}/bin/${BIN_NAME}"
71
73
@echo " install-amd64 - installs ${BIN_NAME}.${BUILD_OS}.amd64 to ${DESTDIR}${prefix}/bin/${BIN_NAME}"
72
-
73
74
ifneq (${AUTOCOMPLETE_FILES},)
74
- @echo
75
- @echo "extra install targets :"
76
- @echo " install-autocomplete - installs ${SRC_AUTOCOMPLETE_FILE} to ${AUTOCOMPLETE_FILES}"
75
+ @echo " install-autocomplete"
76
+ @echo " - installs ${SRC_AUTOCOMPLETE_FILE} to :"
77
+ @$(foreach dst,${AUTOCOMPLETE_FILES}, echo " $(dst)";)
77
78
endif
78
79
79
80
ifdef help_custom_targets
@@ -99,13 +100,18 @@ $(foreach key,$($(section)_KEYS),; echo " $($(section)_$(key)_TARGET) - $($(sec
99
100
@echo " be-update - get latest GOPKG_KEYS dependencies"
100
101
101
102
@echo
102
- @echo "Notes:"
103
- @echo " GOPKG_KEYS are go packages managed by this Makefile and the following"
104
- @echo " are the included packages:" \
105
- $(if ${GOPKG_KEYS},$(foreach key,${GOPKG_KEYS},; echo " $(key): $($(key)_GO_PACKAGE) ($($(key)_LOCAL_PATH))"))
106
-
107
- @echo $(foreach key,${GOLANG_MAKEFILE_KEYS},$(shell \
108
- echo ";echo \"Golang.$(shell perl -e 'print lc("$(key)");').mk: $(GOLANG_$(key)_MK_VERSION)\"" \
103
+ @echo "build system details:"
104
+ @echo
105
+ @printf " %-15s %-40s %s\n" GOPKG_KEYS GO_PACKAGE LOCAL_PATH
106
+ @printf " %-15s %-40s %s\n" ---------- ---------- ----------
107
+ @$(foreach key,${GOPKG_KEYS},$(shell \
108
+ echo "printf \" %-15s %-40s %s\\n\" \"$(key)\" \"$($(key)_GO_PACKAGE)\" \"$($(key)_LOCAL_PATH)\";" \
109
+ ))
110
+ @echo
111
+ @printf " %-20s %-10s %s\n" MAKEFILE VERSION DESCRIPTION
112
+ @printf " %-20s %-10s %s\n" -------- ------- -----------
113
+ @$(foreach key,${MAKEFILE_KEYS},$(shell \
114
+ echo "printf \" %-20s %-10s %-10s\\n\" \"$($(key)_MK_FILE)\" \"$($(key)_MK_VERSION)\" \"$($(key)_MK_DESCRIPTION)\";" \
109
115
))
110
116
111
117
clean :
0 commit comments