generated from BurendoUK/burendo-repo-template-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 695 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SHELL:=bash
aws_profile=default
aws_region=eu-west-2
default: help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: bootstrap
bootstrap: ## Bootstrap local environment for first use
@make git-hooks
make bootstrap-terraform
.PHONY: bootstrap-terraform
bootstrap-terraform: ## Bootstrap local environment for first use
@{ \
export AWS_PROFILE=$(aws_profile); \
export AWS_REGION=$(aws_region); \
python3 bootstrap.py; \
}
.PHONY: git-hooks
git-hooks: ## Set up hooks in .githooks
@git submodule update --init .githooks ; \
git config core.hooksPath .githooks \