-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (23 loc) · 855 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
.DEFAULT_GOAL := help
.PHONY: help
bootstrap: ## Bootstrap dependencies.
@printf "Bootstrapping dependencies...\n"
@scripts/bootstrap.sh
@make gitleaks
@make op
@make chezmoi_init
op: ## Signin to 1Password CLI.
@printf "Bootstrapping dependencies...\n"
@scripts/op_signin.sh
gitleaks: ## Detect GitLeaks.
@printf "Detecting GitLeaks...\n"
@gitleaks detect --source . -v
chezmoi_init: ## Initialize (or update) chezmoi config file on your machine.
@printf "Running `chezmoi init`...\n"
@chezmoi init
chezmoi_apply: ## Apply current chezmoi state to your machine.
@printf "Applying current chezmoi state to your machine...\n"
@chezmoi apply
help: ## Display this help.
@printf "\033[36m%-30s\033[0m %s\n" "Commands:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)