2023-04-11 21:13:29 +08:00
|
|
|
SHELL := /bin/bash
|
2022-05-10 15:38:08 +08:00
|
|
|
|
|
|
|
.PHONY: tidy
|
|
|
|
tidy:
|
|
|
|
$(eval files=$(shell find . -name go.mod))
|
|
|
|
@set -e; \
|
|
|
|
for file in ${files}; do \
|
|
|
|
goModPath=$$(dirname $$file); \
|
|
|
|
cd $$goModPath; \
|
|
|
|
go mod tidy; \
|
|
|
|
cd -; \
|
|
|
|
done
|
|
|
|
|
2022-11-01 20:12:21 +08:00
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2023-03-28 09:25:29 +08:00
|
|
|
golangci-lint run
|
|
|
|
|
2023-04-14 10:09:19 +08:00
|
|
|
# make version to=v2.4.0
|
2023-04-24 11:44:19 +08:00
|
|
|
.PHONY: version
|
2023-04-14 10:09:19 +08:00
|
|
|
version:
|
2023-03-28 09:25:29 +08:00
|
|
|
@set -e; \
|
2023-04-14 10:09:19 +08:00
|
|
|
newVersion=$(to); \
|
2023-06-06 17:10:32 +08:00
|
|
|
./.set_version.sh ./ $$newVersion; \
|
|
|
|
echo "make version to=$(to) done"
|
2023-04-24 11:44:19 +08:00
|
|
|
|
|
|
|
|