Makefile: ignore time terraform has been built

This commit is contained in:
RyanSquared 2023-04-14 00:10:14 -04:00
parent 185193afc9
commit abb9acb85a
Signed by untrusted user who does not match committer: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ infra/backend/.terraform: \
$(BACKEND_TF) $(BACKEND_TF)
env -C infra/backend $(TERRAFORM) init env -C infra/backend $(TERRAFORM) init
infra/main/.terraform: \ infra/main/.terraform: | \
$(OUT_DIR)/terraform \ $(OUT_DIR)/terraform \
config/$(ENVIRONMENT).tfbackend \ config/$(ENVIRONMENT).tfbackend \
$(MAIN_TF) $(MAIN_TF)
@ -75,7 +75,7 @@ infra/backend/$(ENVIRONMENT).tfstate: \
-var region=$(REGION) \ -var region=$(REGION) \
-state ../../$@ -state ../../$@
config/$(ENVIRONMENT).tfbackend: \ config/$(ENVIRONMENT).tfbackend: | \
$(OUT_DIR)/terraform $(OUT_DIR)/terraform
# File is not committed and this has no shared state # File is not committed and this has no shared state
$(MAKE) infra/backend/$(ENVIRONMENT).tfstate $(MAKE) infra/backend/$(ENVIRONMENT).tfstate