github.com/aretext/aretext@v1.3.0/Makefile (about) 1 .PHONY: all fmt generate build build-debug test install install-devtools vet staticcheck bench clean 2 3 all: generate fmt build vet staticcheck test 4 5 fmt: 6 gofmt -s -w . 7 goimports -w -local "github.com/aretext" . 8 markdownfmt -w *.md ./docs 9 10 generate: 11 go generate ./... 12 13 build: 14 go build -o aretext github.com/aretext/aretext 15 16 build-debug: 17 go build -o aretext -gcflags "all=-N -l" github.com/aretext/aretext 18 19 test: 20 go test ./... 21 22 install: 23 go install 24 25 install-devtools: 26 go install golang.org/x/tools/cmd/goimports@latest 27 go install github.com/shurcooL/markdownfmt@latest 28 go install honnef.co/go/tools/cmd/staticcheck@latest 29 30 vet: 31 go vet ./... 32 33 staticcheck: 34 staticcheck --checks inherit,-ST1005 ./... 35 36 bench: 37 go test ./... -bench=. 38 39 clean: 40 rm -rf aretext 41 rm -rf dist 42 go clean ./...