-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Darwin support and upgrade Terraform to 1.3.7. Also undo tab damage.
- Loading branch information
Dan Friedman
committed
Jan 11, 2023
1 parent
ae19303
commit a24dc45
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
terraform_NAME ?= terraform | ||
terraform_RELEASE ?= 1.3.1 | ||
terraform_FILENAME ?= $(terraform_NAME)_$(terraform_RELEASE)_linux_amd64.zip | ||
terraform_DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(terraform_RELEASE)/$(terraform_FILENAME) | ||
# We are assuming that all Mac users are on ARM and all Linux users are on AMD64. | ||
# Override terraform_ARCH if not. | ||
ifeq ($(local_OS),Darwin) | ||
terraform_ARCH ?= arm64 | ||
else | ||
terraform_ARCH ?= amd64 | ||
endif | ||
|
||
terraform_NAME ?= terraform | ||
terraform_RELEASE ?= 1.3.7 | ||
terraform_FILENAME ?= $(terraform_NAME)_$(terraform_RELEASE)_$(call lc,$(local_OS))_$(terraform_ARCH).zip | ||
terraform_DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(terraform_RELEASE)/$(terraform_FILENAME) | ||
|
||
# vi:syntax=makefile |