15 lines
353 B
Makefile
15 lines
353 B
Makefile
fmt:
|
|
@(test -f "$(GOPATH)/bin/gofumpt" || go install mvdan.cc/gofumpt@latest) && \
|
|
"$(GOPATH)/bin/gofumpt" -l -w .
|
|
|
|
gitea-pages: $(shell find . -type f -name "*.go" ) go.mod go.sum
|
|
@CGO_ENABLED=0 go build -ldflags="-s -w" -o $@ .
|
|
|
|
.PHONY: debug
|
|
|
|
debug: gitea-pages
|
|
@./gitea-pages -conf config-local.yaml -debug
|
|
|
|
.PHONY: test
|
|
test:
|
|
@go test -v ./...
|