fix makefile syntax

This commit is contained in:
c9s 2021-12-07 16:16:34 +08:00
parent da8b15d817
commit a07a529559

View File

@ -126,8 +126,8 @@ pkg/version/version.go: .FORCE
bash utils/generate-version-file.sh > $@ bash utils/generate-version-file.sh > $@
git commit $@ -m "bump version to $(VERSION)" || true git commit $@ -m "bump version to $(VERSION)" || true
version: pkg/version/version.go version: pkg/version/version.go migrations
@[[ ! -e doc/release/$(VERSION).md ]] && echo "file doc/release/$(VERSION).md does not exist" && exit 1 [[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1)
git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add release note" || true git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add release note" || true
git tag -f $(VERSION) git tag -f $(VERSION)
git push origin $(VERSION) git push origin $(VERSION)