11# ###############################################################################
22
3- # This Makefile generated by GoMakeGen 1.4 .1 using next command:
4- # gomakegen .
3+ # This Makefile generated by GoMakeGen 1.5 .1 using next command:
4+ # gomakegen --mod .
55#
66# More info: https://kaos.sh/gomakegen
77
88# ###############################################################################
99
10+ export GO111MODULE =on
11+
1012.DEFAULT_GOAL := help
11- .PHONY = fmt vet all clean git-config deps help
13+ .PHONY = fmt vet all clean deps mod-init mod-update mod-vendor help
1214
1315# ###############################################################################
1416
@@ -23,13 +25,17 @@ install: ## Install all binaries
2325uninstall : # # Uninstall all binaries
2426 rm -f /usr/bin/init-exporter-converter
2527
26- git-config : # # Configure git redirects for stable import path services
27- git config --global http.https://pkg.re.followRedirects true
28+ deps : mod-update # # Download dependencies
29+
30+ mod-init : # # Initialize new module
31+ go mod init
32+ go mod tidy
33+
34+ mod-update : # # Download modules to local cache
35+ go mod download
2836
29- deps : git-config # # Download dependencies
30- go get -d -v github.com/funbox/init-exporter
31- go get -d -v pkg.re/essentialkaos/ek.v12
32- go get -d -v pkg.re/essentialkaos/go-simpleyaml.v2
37+ mod-vendor : # # Make vendored copy of dependencies
38+ go mod vendor
3339
3440fmt : # # Format source code with gofmt
3541 find . -name " *.go" -exec gofmt -s -w {} \;
@@ -45,6 +51,6 @@ help: ## Show this info
4551 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) \
4652 | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[33m%-25s\033[0m %s\n", $$1, $$2}'
4753 @echo -e ' '
48- @echo -e ' \033[90mGenerated by GoMakeGen 1.4 .1\033[0m\n'
54+ @echo -e ' \033[90mGenerated by GoMakeGen 1.5 .1\033[0m\n'
4955
5056# ###############################################################################
0 commit comments