github.com/wangyougui/gf/v2@v2.6.5/Makefile (about) 1 SHELL := /bin/bash 2 3 .PHONY: tidy 4 tidy: 5 $(eval files=$(shell find . -name go.mod)) 6 @set -e; \ 7 for file in ${files}; do \ 8 goModPath=$$(dirname $$file); \ 9 cd $$goModPath; \ 10 go mod tidy; \ 11 cd -; \ 12 done 13 14 .PHONY: lint 15 lint: 16 golangci-lint run 17 18 # make version to=v2.4.0 19 .PHONY: version 20 version: 21 @set -e; \ 22 newVersion=$(to); \ 23 ./.set_version.sh ./ $$newVersion; \ 24 echo "make version to=$(to) done" 25 26