fix: do some housework
This commit is contained in:
3
Makefile
3
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user