Skip to content

Commit 7b30862

Browse files
committed
fix make
1 parent 761da06 commit 7b30862

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Makefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Makefile for terraform-provider-spiceai
22

3+
default: build
4+
35
BINARY_NAME=terraform-provider-spiceai
46
VERSION?=dev
57
GOOS?=$(shell go env GOOS)
@@ -12,7 +14,7 @@ LDFLAGS=-ldflags "-X main.version=$(VERSION)"
1214
PROJECT_DIR=$(shell pwd)
1315
TEST_DIR=$(PROJECT_DIR)/examples/test
1416

15-
.PHONY: all build clean test testacc fmt vet lint install setup plan apply destroy help
17+
.PHONY: all build clean test testacc fmt vet lint install setup plan apply destroy help generate
1618

1719
# Default target
1820
all: build
@@ -103,7 +105,11 @@ clean:
103105
rm -f $(TEST_DIR)/terraform.tfstate.backup
104106
@echo "Clean complete"
105107

106-
## Documentation
108+
## Documentation and Code Generation
109+
110+
generate:
111+
@echo "Running code generation..."
112+
cd tools && go generate ./...
107113

108114
docs:
109115
@echo "Generating documentation..."
@@ -138,6 +144,10 @@ help:
138144
@echo " make vet - Run go vet"
139145
@echo " make lint - Run linter"
140146
@echo ""
147+
@echo "Code Generation:"
148+
@echo " make generate - Run all code generation (docs, formatting, headers)"
149+
@echo " make docs - Generate provider documentation only"
150+
@echo ""
141151
@echo "Development:"
142152
@echo " make setup - Set up ~/.terraformrc with dev_overrides"
143153
@echo " make plan - Build and run terraform plan"
@@ -148,10 +158,9 @@ help:
148158
@echo " make clean - Clean build artifacts and state files"
149159
@echo ""
150160
@echo "Other:"
151-
@echo " make docs - Generate provider documentation"
152161
@echo " make deps - Download dependencies"
153162
@echo " make tidy - Tidy dependencies"
154163
@echo ""
155164
@echo "Environment variables for plan/apply/destroy:"
156165
@echo " SPICEAI_CLIENT_ID - OAuth client ID"
157-
@echo " SPICEAI_CLIENT_SECRET - OAuth client secret"
166+
@echo " SPICEAI_CLIENT_SECRET - OAuth client secret"

0 commit comments

Comments
 (0)