Fix makefile. Added terraform and backend server steps

This commit is contained in:
Bitor Tonixa Balenca 2023-12-20 20:13:32 +00:00
parent 2cf2657501
commit 144646a2c1
No known key found for this signature in database
GPG key ID: AF4454DAA92FA1F4

View file

@ -6,11 +6,19 @@ clean-bin:
.PHONY: clean-terraform-state
clean-terraform-state:
rm -rf example/.terraform terraform.tfstate.backup .terraform.lock.hcl terraform.tfstate
rm -rf example/.terraform example/terraform.tfstate.backup example/.terraform.lock.hcl example/terraform.tfstate
.PHONY: clean
clean: clean-bin clean-terraform-state
.PHONY: terraform-init
terraform-init: clean-terraform-state
cd example; terraform init
.PHONY: terraform-apply
terraform-apply:
cd example; terraform apply
.PHONY: build
build:
mkdir -p bin
@ -22,3 +30,7 @@ install-provider:
mkdir -p $(provider_directory)
cp bin/terraform-provider-receita $(provider_directory)
.PHONY: run-backend
run-backend: build
bin/backend