summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorBartosz Nitka <niteria@gmail.com>2016-04-18 06:29:37 -0700
committerBartosz Nitka <niteria@gmail.com>2016-04-18 06:30:28 -0700
commit3dac53fa3ede70e86ddb6f40e1e96feb61301754 (patch)
tree1d6810bd3b168d1285efe52a68cf21d7e8be2eba /mk
parent8a75bb5874070bc879818bba572a94632cf079d5 (diff)
downloadhaskell-3dac53fa3ede70e86ddb6f40e1e96feb61301754.tar.gz
Make it easy to get hyperlinked sources
The version of `haddock` that ghc has as a submodule has an option for generating linkified sources. I don't think it hurts to have this and they are great for exploring the codebase. I'd be nice if harbormaster or travis published them somewhere, but I don't know how to do that yet. Test Plan: uncomment, run `make` and look at the nicely linkified sources in `compiler/stage2/doc/html/ghc/` Reviewers: hvr, austin, bgamari Reviewed By: bgamari Subscribers: thomie, simonmar Differential Revision: https://phabricator.haskell.org/D2119
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk.sample4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 196becbbd8..eed749cbb2 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -86,5 +86,9 @@ endif
# (other sometimes useful configure-options: `--with-gmp-{includes,libraries}`)
#libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp
+# Enable pretty hyperlinked sources
+#HADDOCK_DOCS = YES
+#EXTRA_HADDOCK_OPTS += --hyperlinked-source
+
# Don't strip debug and other unneeded symbols from libraries and executables.
STRIP_CMD = :