11# ###############################################################################
22
3- # This Makefile generated by GoMakeGen 3.2 .3 using next command:
3+ # This Makefile generated by GoMakeGen 3.3 .3 using next command:
44# gomakegen --mod .
55#
66# More info: https://kaos.sh/gomakegen
@@ -27,7 +27,7 @@ GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD)
2727# ###############################################################################
2828
2929.DEFAULT_GOAL := help
30- .PHONY = fmt vet all install uninstall clean deps update test init vendor gen-fuzz mod-init mod-update mod-download mod-vendor help
30+ .PHONY = fmt vet all install uninstall clean deps update test init vendor gen-fuzz tidy mod-init mod-update mod-download mod-vendor help
3131
3232# ###############################################################################
3333
@@ -66,43 +66,53 @@ gen-fuzz: ## Generate archives for fuzz testing
6666 @echo " [36;1mGenerating fuzzing data…[0m"
6767 @go-fuzz-build -o procfile-fuzz.zip github.com/funbox/init-exporter/procfile
6868
69+ tidy : # # Cleanup dependencies
70+ @echo " [32m•[0m[90m•[0m [36;1mTidying up dependencies…[0m"
71+ ifdef COMPAT # # Compatible Go version (String)
72+ @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
73+ else
74+ @go mod tidy $(VERBOSE_FLAG)
75+ endif
76+ @echo "[32m••[0m [36;1mUpdating vendored dependencies…[0m"
77+ @test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || :
78+
6979mod-init :
70- @echo " [37m[1/3] [0m [36;1mModules initialization…[0m"
80+ @echo " [32m•[0m[90m•• [0m [36;1mModules initialization…[0m"
7181 @rm -f go.mod go.sum
7282ifdef MODULE_PATH # # Module path for initialization (String)
7383 @go mod init $(MODULE_PATH)
7484else
7585 @go mod init
7686endif
7787
78- @echo "[37m[2/3] [0m [36;1mDependencies cleanup…[0m"
88+ @echo "[32m••[0m[90m• [0m [36;1mDependencies cleanup…[0m"
7989ifdef COMPAT # # Compatible Go version (String)
8090 @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT)
8191else
8292 @go mod tidy $(VERBOSE_FLAG)
8393endif
84- @echo "[37m[3/3] [0m [36;1mStripping toolchain info…[0m"
94+ @echo "[32m••• [0m [36;1mStripping toolchain info…[0m"
8595 @grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || :
8696
8797mod-update :
88- @echo " [37m[1/4] [0m [36;1mUpdating dependencies…[0m"
98+ @echo " [32m•[0m[90m••• [0m [36;1mUpdating dependencies…[0m"
8999ifdef UPDATE_ALL # # Update all dependencies (Flag)
90100 @go get -u $(VERBOSE_FLAG) all
91101else
92102 @go get -u $(VERBOSE_FLAG) ./...
93103endif
94104
95- @echo "[37m[2/4] [0m [36;1mStripping toolchain info…[0m"
105+ @echo "[32m••[0m[90m•• [0m [36;1mStripping toolchain info…[0m"
96106 @grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || :
97107
98- @echo "[37m[3/4] [0m [36;1mDependencies cleanup…[0m"
108+ @echo "[32m•••[0m[90m• [0m [36;1mDependencies cleanup…[0m"
99109ifdef COMPAT
100110 @go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT)
101111else
102112 @go mod tidy $(VERBOSE_FLAG)
103113endif
104114
105- @echo "[37m[4/4] [0m [36;1mUpdating vendored dependencies…[0m"
115+ @echo "[32m•••• [0m [36;1mUpdating vendored dependencies…[0m"
106116 @test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || :
107117
108118mod-download :
@@ -126,15 +136,15 @@ clean: ## Remove generated files
126136 @rm -f init-exporter
127137
128138help : # # Show this info
129- @echo -e ' \n\033[1mTargets:\033[0m\n'
139+ @printf ' \n\033[1mTargets:\033[0m\n \n'
130140 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) \
131141 | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[33m%-9s\033[0m %s\n", $$1, $$2}'
132- @echo -e ' \n\033[1mVariables:\033[0m\n'
142+ @printf ' \n\033[1mVariables:\033[0m\n \n'
133143 @grep -E ' ^ifdef [A-Z_]+ .*?## .*$$' $(abspath $(lastword $(MAKEFILE_LIST ) ) ) \
134144 | sed ' s/ifdef //' \
135145 | sort -h \
136146 | awk ' BEGIN {FS = " .*?## "}; {printf " \033[32m%-13s\033[0m %s\n", $$1, $$2}'
137- @echo -e ' '
138- @echo -e ' \033[90mGenerated by GoMakeGen 3.2 .3\033[0m\n'
147+ @echo ' '
148+ @printf ' \033[90mGenerated by GoMakeGen 3.3 .3\033[0m\n \n'
139149
140150# ###############################################################################
0 commit comments