summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2018-03-22 18:19:20 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2018-03-22 18:20:13 +0100
commitd9004cabd5bda5ae566f503f4cddc187ecc2f514 (patch)
tree9075120bf9cd06a91beab6dea07e373ea4b14026 /Makefile
parent66a8b429b6bf0c92640cce8f23c80c12d0e32a1b (diff)
downloadhakyll-d9004cabd5bda5ae566f503f4cddc187ecc2f514.tar.gz
Fix haddock generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 1029599..5c71a12 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
+PACKAGE="$(shell stack list-dependencies --separator='-' | grep hakyll)"
+LOCAL_DOC_ROOT="$(shell stack path --local-doc-root)"
+
# Generate the docs and copy them to the website dir
haddock:
- cabal haddock --hyperlink-source
- rm -rf web/reference/
- cp -r dist/doc/html/hakyll/ web/reference/
+ stack build --haddock --no-haddock-deps
+ rsync -r "$(LOCAL_DOC_ROOT)/$(PACKAGE)/" web/reference/
-# Run the tests
-test:
- runghc -isrc -itests tests/TestSuite.hs
+.PHONY: haddock