From 8e53a4328da6d1b437de84125fac826fcfdbeed9 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Mon, 8 May 2017 14:32:13 -0700 Subject: [PATCH] Always invoke terraform get to ensure we have the necessary modules --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7a0416aa15..ed2db5e63b 100644 --- a/Makefile +++ b/Makefile @@ -21,16 +21,17 @@ installer-env: $(INSTALLER_BIN) terraformrc.example localconfig: mkdir -p $(BUILD_DIR) -$(BUILD_DIR)/.terraform: +.PHONY: terraform-get +terraform-get: cd $(BUILD_DIR) && $(TF_CMD) get $(TOP_DIR)/platforms/$(PLATFORM) -plan: installer-env $(BUILD_DIR)/.terraform +plan: installer-env terraform-get cd $(BUILD_DIR) && $(TF_CMD) plan $(TOP_DIR)/platforms/$(PLATFORM) -apply: installer-env $(BUILD_DIR)/.terraform +apply: installer-env terraform-get cd $(BUILD_DIR) && $(TF_CMD) apply $(TOP_DIR)/platforms/$(PLATFORM) -destroy: installer-env ${BUILD_DIR}/.terraform +destroy: installer-env terraform-get cd $(BUILD_DIR) && $(TF_CMD) destroy -force $(TOP_DIR)/platforms/$(PLATFORM) payload: