-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1014 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!make
help: ## Display this help screen
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; \
{printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' | \
sort
bash-all: bash-fmt bash-check bash-lint ## Run all bash tests
bash-fmt: ## Format bash code
@find . -type f -name "*.sh" | xargs shfmt -i 2 -w
bash-check: ## Check format bash code
@find . -type f -name "*.sh" | xargs shfmt -i 2 -d
bash-lint: ## Check lint bash code
@find . -type f -name "*.sh" | xargs shellcheck -o all
doc-readme: ## Write README.md
@./dev/doc-readme.sh
doc-changelog: ## Write CHANGELOG.mode
@git cliff -o CHANGELOG.md
links-check: ## Check links
@./dev/links-check.sh
links-mirror: ## Mirror links
@./dev/links-mirror.sh
typos: ## Check typos
@typos
typos-fix: ## Fix typos
@typos -w
.PHONY: help
.PHONY: bash-all
.PHONY: bash-check
.PHONY: bash-fmt
.PHONY: bash-lint
.PHONY: doc-changelog
.PHONY: doc-readme
.PHONY: links-check
.PHONY: links-mirror
.PHONY: typos
.PHONY: typos-fix