feat(mkfile): build sqlc

This commit is contained in:
Muyao CHEN 2024-10-06 13:18:21 +02:00
parent b14b8788ab
commit 43a1d0509c

View File

@ -33,9 +33,12 @@ all: add-copyright format build
# ==============================================================================
.PHONY: build
build: tidy # build.
build: tidy sqlc # build.
@go build -v -ldflags "$(GO_LDFLAGS)" -o $(OUTPUT_DIR)/howmuch $(ROOT_DIR)/cmd/howmuch/main.go 2>/dev/null
.PHONY: sqlc
@sqlc generate
.PHONY: format
format: # format code.
@gofmt -s -w ./