From 0bc4487c756b9041d6d212a72b898e6fe5093905 Mon Sep 17 00:00:00 2001 From: Levent Erkok Date: Thu, 15 Feb 2024 10:34:50 -0800 Subject: [PATCH] Add a hackage-docs target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 77f521aad..44c10e7f7 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,12 @@ install: tags docs: cabal new-haddock --haddock-option=--hyperlinked-source --haddock-option=--no-warnings | ghc ./buildUtils/simpHaddock.hs -e main +# To upload docs to hackage, first run the below target (part of release), then run the next target.. +hackage-docs: + cabal new-haddock --haddock-for-hackage --enable-doc --haddock-option=--no-warnings | ghc ./buildUtils/simpHaddock.hs -e main + @echo "*** If all is well, then run:" + @echo " cabal upload -d --publish ./dist-newstyle/sbv-XXX-docs.tar.gz" + ghci: cabal new-repl --repl-options=-Wno-unused-packages