1 STACK_ROOT ?= "${HOME}/.stack"
4 stack --stack-root "${STACK_ROOT}" build
7 stack --stack-root "${STACK_ROOT}" test
9 lint: lint-haskell lint-shell
13 $(MAKE) -C scaffolder lint
14 $(MAKE) -C specification lint
17 @git ls-files "*.sh" | xargs shellcheck -x
19 doc: ## make doc # Use haddock for producing the codebase documentation
20 stack --no-haddock-deps --stack-root "${STACK_ROOT}" haddock
22 doc-publish: doc ## make doc-publish # Build and publish generated haddock
23 ./scripts/documentation-versioning.sh "${WWW}" "${COMMIT_TAG}" '$(shell stack --stack-root "${STACK_ROOT}" path --local-doc-root)'
26 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
29 .PHONY: test lint doc help