3 help: ## Display this help
4 @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
6 all: codecheck spellcheck ## Run codecheck and spellcheck
8 codecheck: shellcheck pythoncheck ## Run shellcheck and pythoncheck
10 shellcheck: ## Run shellcheck
11 for shellfile in usr_bin/* usr_sbin/* usr_share/*; do head -1 "$${shellfile}" | grep -q "/bin/bash\|/bin/sh" && shellcheck -x "$${shellfile}"; done
14 pythoncheck: ## Run shellcheck
15 for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do
16 if head -1 "$${pythonfile}" | grep -q "python"; then
17 flake8 "$${pythonfile}"
18 isort --check "$${pythonfile}"
19 black --check "$${pythonfile}"
23 spellcheck: ## Run spellcheck
24 spellintian manpages/*