@@ -21,15 +21,15 @@ VERSION:=$(shell git describe --tags 2>$(NUL) || echo v0.0.0)
2121GOOPT: =-ldflags "-s -w -X github.com/hymkor/sqlbless.Version=$(VERSION ) "
2222EXE =$(shell $(GO ) env GOEXE)
2323
24- all :
24+ build :
2525 $(GO ) fmt ./...
26- $(SET ) " CGO_ENABLED=0" && $(GO ) build $( GOOPT ) && $( GO ) build -C " $( CURDIR) /cmd/sqlbless" -o " $( CURDIR) / $( NAME ) $( EXE ) " $(GOOPT )
26+ $(SET ) " CGO_ENABLED=0" && $(GO ) build -C " $( CURDIR) /cmd/sqlbless" -o " $( CURDIR) " $(GOOPT )
2727
2828test :
2929 $(GO ) test -v ./...
3030
3131_dist :
32- $(MAKE ) all
32+ $(SET ) " CGO_ENABLED=0 " && $( GO ) build -C " $( CURDIR ) /cmd/sqlbless " -o " $( CURDIR ) " $( GOOPT )
3333 zip -9 $(NAME ) -$(VERSION ) -$(GOOS ) -$(GOARCH ) .zip $(NAME )$(EXE )
3434
3535dist :
@@ -42,22 +42,17 @@ clean:
4242 $(DEL ) * .zip $(NAME )$(EXE )
4343
4444manifest :
45- make-scoop-manifest * -windows-* .zip > $(NAME ) .json
45+ $( GO ) run github.com/hymkor/ make-scoop-manifest@master -all * -windows-* .zip > $(NAME ) .json
4646
4747release :
48- pwsh -Command " latest-notes.ps1" | gh release create -d --notes-file - -t $(VERSION ) $(VERSION ) $(wildcard $(NAME ) -$(VERSION ) -* .zip)
49-
50- get :
51- $(GO ) get -u
52- $(GO ) get golang.org/x/sys@v0.30.0
53- # $(GO) get golang.org/x/text@v0.22.0
54- $(GO) get golang.org/x/term@v0.29.0
55- $(GO) get golang.org/x/exp@v0.0.0-20240531132922-fd00a4e0eefc
56- $(GO) mod tidy
57- # cd "$(CURDIR)/cmd/sqlbless" && $(GO) get -u && $(GO) mod tidy
48+ $(GO ) run github.com/hymkor/latest-notes@latest | gh release create -d --notes-file - -t $(VERSION ) $(VERSION ) $(wildcard $(NAME ) -$(VERSION ) -* .zip)
5849
5950docs :
60- minipage -outline-in-sidebar -readme-to-index README.md > docs/index.html
61- minipage -outline-in-sidebar -readme-to-index README_ja.md > docs/index_ja.html
51+ go run github.com/hymkor/minipage@latest -outline-in-sidebar -readme-to-index README.md > docs/index.html
52+ go run github.com/hymkor/minipage@latest -outline-in-sidebar -readme-to-index README_ja.md > docs/index_ja.html
53+
54+ readme :
55+ go run github.com/hymkor/example-into-readme@latest
56+ go run github.com/hymkor/example-into-readme@latest -target README_ja.md
6257
6358.PHONY : all test dist _dist clean manifest release docs
0 commit comments