From a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Menou?= Date: Thu, 8 Dec 2016 10:19:15 +0200 Subject: Release code as open source --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fc506f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +STACK_ROOT ?= "${HOME}/.stack" + +build: + stack --stack-root "${STACK_ROOT}" build + +test: + stack --stack-root "${STACK_ROOT}" test + +lint: lint-haskell lint-shell + +lint-haskell: + $(MAKE) -C core lint + $(MAKE) -C scaffolder lint + $(MAKE) -C specification lint + +lint-shell: + @git ls-files "*.sh" | xargs shellcheck -x + +doc: ## make doc # Use haddock for producing the codebase documentation + stack --no-haddock-deps --stack-root "${STACK_ROOT}" haddock + +doc-publish: doc ## make doc-publish # Build and publish generated haddock + ./scripts/documentation-versioning.sh "${WWW}" "${COMMIT_TAG}" '$(shell stack --stack-root "${STACK_ROOT}" path --local-doc-root)' + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +.DEFAULT_GOAL := help +.PHONY: test lint doc help -- cgit v1.2.3