-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 627 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
PATH := $(PATH):$(HOME)/.local/bin:$(HOME)/bin:/usr/local/bin
.DEFAULT_GOAL := help
export PATH
help:
@grep -E '^[a-zA-Z1-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN { FS = ":.*?## " }; { printf "\033[36m%-30s\033[0m %s\n", $$1, $$2 }'
shellcheck: ## Run shellcheck linter
$(info --> Run shellcheck)
@shellcheck -s bash $(PWD)/patatetoy_common.sh
@shellcheck -s bash $(PWD)/patatetoy.sh
shfmt: ## Run shfmt linter
$(info --> Run shfmt)
@shfmt -i 2 -ci -d $(PWD)/patatetoy_common.sh
@shfmt -i 2 -ci -d $(PWD)/patatetoy.sh
test: ## Run test suite
$(info --> Test files)
$(MAKE) shellcheck shfmt