feat(mkfile): build sqlc
This commit is contained in:
parent
b14b8788ab
commit
43a1d0509c
5
Makefile
5
Makefile
@ -33,9 +33,12 @@ all: add-copyright format build
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
.PHONY: 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
|
@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
|
.PHONY: format
|
||||||
format: # format code.
|
format: # format code.
|
||||||
@gofmt -s -w ./
|
@gofmt -s -w ./
|
||||||
|
Loading…
Reference in New Issue
Block a user