diff options
author | Frédéric Menou <frederic.menou@fretlink.com> | 2016-12-08 10:19:15 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2022-05-17 18:01:51 +0200 |
commit | a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 (patch) | |
tree | adf3186fdccaeef19151026cdfbd38a530cf9ecb /Makefile | |
download | edi-parser-master.tar.gz edi-parser-master.tar.zst edi-parser-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fc506f2 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,29 @@ | |||
1 | STACK_ROOT ?= "${HOME}/.stack" | ||
2 | |||
3 | build: | ||
4 | stack --stack-root "${STACK_ROOT}" build | ||
5 | |||
6 | test: | ||
7 | stack --stack-root "${STACK_ROOT}" test | ||
8 | |||
9 | lint: lint-haskell lint-shell | ||
10 | |||
11 | lint-haskell: | ||
12 | $(MAKE) -C core lint | ||
13 | $(MAKE) -C scaffolder lint | ||
14 | $(MAKE) -C specification lint | ||
15 | |||
16 | lint-shell: | ||
17 | @git ls-files "*.sh" | xargs shellcheck -x | ||
18 | |||
19 | doc: ## make doc # Use haddock for producing the codebase documentation | ||
20 | stack --no-haddock-deps --stack-root "${STACK_ROOT}" haddock | ||
21 | |||
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)' | ||
24 | |||
25 | help: | ||
26 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
27 | |||
28 | .DEFAULT_GOAL := help | ||
29 | .PHONY: test lint doc help | ||