Makefile: ignore time terraform has been built
This commit is contained in:
parent
185193afc9
commit
abb9acb85a
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue