From d9004cabd5bda5ae566f503f4cddc187ecc2f514 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Thu, 22 Mar 2018 18:19:20 +0100 Subject: Fix haddock generation --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3