diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-12-17 12:15:27 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-17 12:54:32 +0100 |
commit | e58a9361ac7e3699e298aa5c99398a21ac732500 (patch) | |
tree | 2ac8b4b6cdae49e2b5dd09abdad021a376f5d39f /rules | |
parent | 109d847971691a89dab6c80b37f46dc33197b8c2 (diff) | |
download | haskell-e58a9361ac7e3699e298aa5c99398a21ac732500.tar.gz |
rules/haddock: Add EXTRA_HADDOCK_OPTS flag
Allowing one to pass the new `--hyperlinked-source` option to generate
pretty marked-up sources for the core libraries.
Test Plan: Try it
Reviewers: hvr, austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1643
Diffstat (limited to 'rules')
-rw-r--r-- | rules/haddock.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk index f6978a7462..3d3a83c3e2 100644 --- a/rules/haddock.mk +++ b/rules/haddock.mk @@ -64,13 +64,14 @@ endif --hoogle \ --title="$$($1_PACKAGE)-$$($1_$2_VERSION)$$(if $$(strip $$($1_$2_SYNOPSIS)),: $$(strip $$($1_$2_SYNOPSIS)),)" \ --prologue="$1/$2/haddock-prologue.txt" \ - --optghc="-D__HADDOCK_VERSION__=$$(HADDOCK_VERSION_STRING)" \ + --optghc="-D__HADDOCK_VERSION__=$$(HADDOCK_VERSION_STRING)" \ $$(foreach mod,$$($1_$2_HIDDEN_MODULES),--hide=$$(mod)) \ $$(foreach pkg,$$($1_$2_DEPS),$$(if $$($$(pkg)_HADDOCK_FILE),--read-interface=../$$(pkg)$$(comma)../$$(pkg)/src/%{MODULE/./-}.html\#%{NAME}$$(comma)$$($$(pkg)_HADDOCK_FILE))) \ $$(foreach opt,$$($1_$2_$$(HADDOCK_WAY)_ALL_HC_OPTS),--optghc=$$(opt)) \ $$($1_$2_HADDOCK_FLAGS) $$($1_$2_HADDOCK_OPTS) \ $$($1_$2_HS_SRCS) \ $$($1_$2_EXTRA_HADDOCK_SRCS) \ + $$(EXTRA_HADDOCK_OPTS) \ +RTS -t"$1/$2/haddock.t" --machine-readable # --no-tmp-comp-dir above is important: it saves a few minutes in a |