Skip to content

Commit

Permalink
add generate recipe to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Dec 21, 2024
1 parent a32be59 commit 0d0b66c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ ifdef DEBUG
BUILD_FLAGS += -x
endif

.PHONY: generate
generate:
go generate ./...
sqlc generate

.PHONY: build
build:
build: generate
go build $(BUILD_FLAGS) -ldflags $(BUILD_LDFLAGS) -o bin/relay ./cmd/relay

.PHONY: build-linux-386
Expand Down Expand Up @@ -97,7 +102,7 @@ build-version:
# docker buildx build --platform "linux/amd64,linux/arm64" --output type=oci,dest=dist/relay-$(PACKAGE_VERSION).tar .

.PHONY: build-all
build-all: clean build-linux-386 build-linux-amd64 build-linux-arm build-linux-arm64 build-linux-s390x \
build-all: clean generate build-linux-386 build-linux-amd64 build-linux-arm build-linux-arm64 build-linux-s390x \
build-windows-386 build-windows-amd64 build-windows-arm64 build-installer build-version

.PHONY: release-new
Expand Down

0 comments on commit 0d0b66c

Please sign in to comment.