forked from terraform-module/terraform-kubernetes-velero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 800 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
29
SHELL = /bin/bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.PHONY: pre-commit changelog release
# -include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness)
help/local:
@cat Makefile* | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
help: help/local
hooks: ## Commit hooks setup
@pre-commit install
@pre-commit gc
@pre-commit autoupdate
validate: ## Validate with pre-commit hooks
@pre-commit run --all-files
init: ## Test with init
@terraform init
clean: ## Clean resources
@find . -type d -name ".terraform" -prune -exec rm -rf {} \;
@find . -type f -name ".terraform.lock.hcl" -prune -exec rm {} \;