fix: do some housework

This commit is contained in:
Muyao CHEN
2024-10-02 22:48:27 +02:00
parent 62597e4534
commit 608f435fb1
5 changed files with 5 additions and 8 deletions

View File

@ -34,7 +34,7 @@ all: add-copyright format build
.PHONY: build
build: tidy # build.
@go build -v -ldflags "$(GO_LDFLAGS)" -o $(OUTPUT_DIR)/howmuch $(ROOT_DIR)/cmd/howmuch/main.go
@go build -v -ldflags "$(GO_LDFLAGS)" -o $(OUTPUT_DIR)/howmuch $(ROOT_DIR)/cmd/howmuch/main.go 2>/dev/null
.PHONY: format
format: # format code.
@ -43,6 +43,7 @@ format: # format code.
.PHONY: add-copyright
add-copyright: # add license to file headers.
@addlicense -v -f $(ROOT_DIR)/LICENSE -ignore third_party/** -ignore vendor/** -ignore $(OUTPUT_DIR) $(ROOT_DIR)
.PHONY: swagger
swagger: # Run swagger.
@swagger serve -F=swagger --no-open --port 65534 $(ROOT_DIR)/api/openapi/openapi.yaml