|
| 1 | +# Project Makefile with Terraform support |
1 | 2 | include .base.mk |
2 | 3 |
|
3 | 4 | .PHONY: all build build-release check test clean deploy |
@@ -25,3 +26,52 @@ clean: ## Clean up resources from build |
25 | 26 |
|
26 | 27 | perf: ## Run performance benchmarks |
27 | 28 | (cd crates/oxbow && make bench) |
| 29 | + |
| 30 | +# Terraform targets |
| 31 | +.PHONY: terraform-init |
| 32 | +terraform-init: |
| 33 | + @echo "=== Initializing Terraform ===" |
| 34 | + @make -C terraform init |
| 35 | + |
| 36 | +.PHONY: terraform-validate |
| 37 | +terraform-validate: |
| 38 | + @echo "=== Validating Terraform ===" |
| 39 | + @make -C terraform validate |
| 40 | + |
| 41 | +.PHONY: terraform-test |
| 42 | +terraform-test: |
| 43 | + @echo "=== Testing Terraform modules ===" |
| 44 | + @make -C terraform test |
| 45 | + |
| 46 | +.PHONY: terraform-clean |
| 47 | +terraform-clean: |
| 48 | + @echo "=== Cleaning Terraform ===" |
| 49 | + @make -C terraform clean |
| 50 | + |
| 51 | +.PHONY: terraform-deploy-simple |
| 52 | +tf-deploy-simple: |
| 53 | + @echo "=== Deploying oxbow-simple ===" |
| 54 | + @make -C terraform deploy-simple |
| 55 | + |
| 56 | +.PHONY: terraform-destroy-simple |
| 57 | +tf-destroy-simple: |
| 58 | + @echo "=== Destroying oxbow-simple ===" |
| 59 | + @make -C terraform destroy-simple |
| 60 | + |
| 61 | +.PHONY: terraform-full-test |
| 62 | +tf-full-test: |
| 63 | + @echo "=== Running full Terraform test ===" |
| 64 | + @make -C terraform full-test |
| 65 | + |
| 66 | +.PHONY: terraform-all |
| 67 | +terraform-all: terraform-init terraform-validate terraform-test |
| 68 | + |
| 69 | +.PHONY: terraform-full-test |
| 70 | +tf-full-test: |
| 71 | + @echo "=== Running full Terraform test ===" |
| 72 | + @make -C terraform full-test |
| 73 | + |
| 74 | +.PHONY: build-deploy-test |
| 75 | +build-deploy-test: |
| 76 | + @echo "=== Building lambdas and testing Terraform ===" |
| 77 | + @make build-release && make terraform-all |
0 commit comments