Skip to content

Commit d58943c

Browse files
authored
Use explicit targets (#81)
1 parent 0386aec commit d58943c

File tree

22 files changed

+155
-66
lines changed

22 files changed

+155
-66
lines changed

aws/account-dns/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/account-settings/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/accounts/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/acm-cloudfront/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/acm/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/audit-cloudtrail/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/backing-services/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/bootstrap/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/chamber/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

aws/cloudtrail/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
## Initialize terraform remote state
22
init:
3-
[ -d .terraform ] || init-terraform
3+
[ -f .terraform/terraform.tfstate ] || init-terraform
44

55
## Clean up the project
66
clean:
77
rm -rf .terraform *.tfstate*
88

9-
## Pass argument through to terraform
10-
%: init
9+
## Pass arguments through to terraform which require remote state
10+
apply console destroy graph plan output providers show: init
11+
terraform $@
12+
13+
## Pass arguments through to terraform which do not require remote state
14+
get fmt validate version:
1115
terraform $@

0 commit comments

Comments
 (0)