summaryrefslogtreecommitdiff
path: root/rules/haddock.mk
Commit message (Collapse)AuthorAgeFilesLines
* rules/haddock: Ensure that RTS stats directory existsBen Gamari2019-10-031-0/+2
| | | | | It may not exist if the source tarball was extracted yet not the testsuite tarball.
* testsuite: introduce 'static_stats' testsAlp Mestanogullari2019-05-291-1/+1
| | | | | | | | | | | | | | | | They are a particular type of perf tests. This patch introduces a 'stats_files_dir' configuration field in the testsuite driver where all haddock timing files (and possibly others in the future) are assumed to live. We also change both the Make and Hadrian build systems to pass respectively $(TOP)/testsuite/tests/perf/haddock/ and <build root>/stage1/haddock-timing-files/ as the value of that new configuration field, and to generate the timing files in those directories in the first place while generating documentation with haddock. This new test type can be seen as one dedicated to examining stats files that are generated while building a GHC distribution. This also lets us get rid of the 'extra_files' directives in the all.T entries for haddock.base, haddock.Cabal and haddock.compiler.
* Update Wiki URLs to point to GitLabTakenobu Tani2019-03-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This moves all URL references to Trac Wiki to their corresponding GitLab counterparts. This substitution is classified as follows: 1. Automated substitution using sed with Ben's mapping rule [1] Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy... New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy... 2. Manual substitution for URLs containing `#` index Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...#Zzz New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...#zzz 3. Manual substitution for strings starting with `Commentary` Old: Commentary/XxxYyy... New: commentary/xxx-yyy... See also !539 [1]: https://gitlab.haskell.org/bgamari/gitlab-migration/blob/master/wiki-mapping.json
* Build Haddocks with --quickjumpBen Gamari2018-02-181-0/+1
| | | | | | | | | | | | | | | By request of @alexbiehl. CCing @snowleopard and @alpmestan as the same should be done in Hadrian. Bumps haddock submodule. Reviewers: alexbiehl Reviewed By: alexbiehl Subscribers: rwbarton, thomie, carter, snowleopard, alpmestan, alexbiehl Differential Revision: https://phabricator.haskell.org/D4365
* Don't pass -dcore-lint to haddock in Haddock.mkDouglas Wilson2017-06-081-18/+20
| | | | | | | | | | | | | | | This fixes the regressions in the haddock performance tests introduced in c9eb4385aad248118650725b7b699bb97ee21c0d. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #13789 Differential Revision: https://phabricator.haskell.org/D3629
* rules/haddock: Add EXTRA_HADDOCK_OPTS flagBen Gamari2015-12-171-1/+2
| | | | | | | | | | | | | | | 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
* Build system: fix 'make install-strip' in bindistThomas Miedema2015-12-121-0/+2
| | | | | | | | | | | | | | | | The INSTALL_PROGRAM variable is set in mk/config.mk, so we have to include that file before using it. Running 'make install' before './configure' in a bindist will now also display a nice message. Reviewers: hvr, austin, bgamari Reviewed By: bgamari Differential Revision: https://phabricator.haskell.org/D1604 GHC Trac Issues: #1851
* haddock.mk: Use \{1,\} instead of \+Ben Gamari2015-11-161-4/+4
| | | | | | | | This works around Mac OS X's sed, which doesn't support \+. For the record, The regex implementation in Mac OS X 10.8 and later is based on a heavily modified subset of TRE, http://laurikari.net/tre/
* rules/haddock: Set __HADDOCK_VERSION__Ben Gamari2015-11-121-0/+7
| | | | | | | | | | | | Test Plan: Validate Reviewers: austin, thomie Reviewed By: thomie Subscribers: kgardas, thomie Differential Revision: https://phabricator.haskell.org/D1467
* Build system: comments only [skip ci]Thomas Miedema2015-07-131-1/+1
|
* build: make haddock a bit less chattyAustin Seipp2015-06-021-0/+1
| | | | | | | | | | | | | | | | | | | Summary: Haddock outputs well over a thousand lines of file output just to give its executive summary about coverage. Kill this by default, since we really don't need it in any setting. Signed-off-by: Austin Seipp <austin@well-typed.com> Test Plan: Crossed my fingers. Reviewers: nomeata, thomie Reviewed By: thomie Subscribers: bgamari, thomie Differential Revision: https://phabricator.haskell.org/D933
* Build system: don't install haddock .t files (#10410)Thomas Miedema2015-05-271-1/+1
| | | | | | | | | | | | When generating a haddock .t file for a library, don't save it in the `dist-install/doc` directory for that library, as then it gets copied to the installation directory during `make install` by `ghc-cabal copy`. Instead, save it a few directories up; putting it next to `haddock-prologue.txt` seemed appropriate. Test Plan: run `make` in `tests/perf/haddock`. Differential Revision: https://phabricator.haskell.org/D903
* Globally replace "hackage.haskell.org" with "ghc.haskell.org"Simon Marlow2013-10-011-2/+2
|
* Simplify ghc-cabalIan Lynagh2013-05-141-1/+1
| | | | | | It now consistently takes directory and distDirectory as its first 2 arguments. Also, it only supports configuring 1 package at a time now (we weren't using the ability to configure more than one at once).
* Some build system refactoringIan Lynagh2013-04-201-1/+1
|
* Use more of the automatically generated INPLACE variablesIan Lynagh2013-03-031-2/+2
|
* Add PACKAGES_STAGE0 to build-dirs too; fixes #7700Ian Lynagh2013-03-031-1/+4
| | | | | | | | This is sometimes needed when cross-compiling, as some packages may be built in stage 0 but not stage 1. In order to make everything work out, this also removes the requirement that the build-dirs are in dependency order
* Change how the build system handles packagesIan Lynagh2013-03-011-1/+1
| | | | | This makes the build system a little simpler, and in particular will make it easier to handle the changes needed for cross-compilation.
* iOS patch no 2: remove obsolete CROSS_COMPILE variable; #7699Ian Lynagh2013-02-171-1/+1
| | | | From StephenBlackheath
* Fix the haddocking build system rules when dynamic is the default wayIan Lynagh2012-10-251-3/+3
|
* Make .t files when running haddockIan Lynagh2012-08-141-1/+2
| | | | | These files contain the "+RTS -t --machin-readable" output, so that we can spot performance regressions.
* Improve support for cross-compilationSimon Marlow2012-01-301-1/+1
| | | | Patchset from Stephen Blackheath <stephen.blackheath@ipwnstudios.com>
* Fix typoIan Lynagh2011-10-261-1/+1
|
* Fix Haddock dependency on library archiveManuel M T Chakravarty2011-10-251-1/+1
|
* Add build system profiling to build systemIan Lynagh2011-01-231-0/+2
|
* Pass --hoogle to haddock; fixes trac #4521Ian Lynagh2010-12-191-0/+1
|
* Tweak the haddock rules; no functional changeIan Lynagh2010-10-201-1/+1
|
* add a simple trace facility to the build systemSimon Marlow2010-09-211-0/+1
| | | | | | | | | saying make TRACE=1 prints most of the macro calls and their arguments. It's easy to trace new macros; see rules/trace.mk.
* Give haddock per-package source entity paths; fixes #3810Ian Lynagh2010-09-031-1/+1
|
* Pass --no-tmp-comp-dir to Haddock (see comment)Simon Marlow2010-06-041-0/+7
|
* fix --source-entity option passed to Haddock: we needed to escape a #Simon Marlow2010-06-031-1/+1
|
* When haddocking, we need the dependencies to have been builtIan Lynagh2010-05-251-1/+1
| | | | as haddock loads the .hi files with the GHC API.
* hide modules properly with haddockSimon Marlow2010-01-131-0/+1
|
* fix for HSCOLOUR_SRCS=NOSimon Marlow2010-01-131-0/+2
|
* Invoke Haddock directly from the build system, instead of via CabalSimon Marlow2010-01-121-9/+20
| | | | | | | | | | | | | Partly this is cleaner as we only have to preprocess the source files once, but also it is necessary to avoid Haddock recompiling source files when Template Haskell is in use, saving some time in validate and fixing a problem whereby when HADDOCK_DOCS=YES, make always re-haddocks the DPH packages. This also needs an additional fix to GHC. HsColour support still uses Cabal, and hence preprocesses the source files again. We could move this into the build system too, but there is a version dependency that would mean adding extra autoconf stuff.
* exclude some haddock-related rules during BINDISTSimon Marlow2009-11-171-0/+2
|
* Use "order only constraints" for directoriesIan Lynagh2009-10-021-2/+1
| | | | There are now 104 calls to mkdirhier, down from 1201, when validating.
* Fix creation of library doc index, and put the library docs in bindistsIan Lynagh2009-08-021-0/+1
|
* 'make html' in a library builds the Haddock docsSimon Marlow2009-06-301-1/+4
|
* fix commentSimon Marlow2009-05-291-1/+1
|
* Quote commands that we run, so they work if there are space in their pathsIan Lynagh2009-05-301-2/+2
| | | | | I've also added some missing $s to some makefiles. These aren't technically necessary, but it's nice to be consistent.
* Make haddocking depend on the library .a filesimonpj@microsoft.com2009-05-291-0/+4
| | | | | | | | | | | | You can't Haddock a library until it's built. Previously that happened automatically because Haddock itself was built with stage2 And all the libraries were built with stage1 But now DPH is built with stage2, so Haddock can get to work too early. This patch adds the missing dependency (thanks to Simon M)
* Add a haddock target, for just building the haddock docsIan Lynagh2009-05-261-0/+2
|
* Add some more $s to rules/haddock.mk for consistencyIan Lynagh2009-05-261-2/+2
|
* Fix haddockingIan Lynagh2009-05-261-1/+1
| | | | We were looking at HADDOCK_DOCS instead of $$(HADDOCK_DOCS)
* Prevent haddock docs being built when HADDOCK_DOCS=NODuncan Coutts2009-04-291-0/+2
|
* Add a header to all build system files:Simon Marlow2009-04-281-0/+12
| | | | | | | | | | | | | | # ----------------------------------------------------------------------------- # # (c) 2009 The University of Glasgow # # This file is part of the GHC build system. # # To understand how the build system works and how to modify it, see # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying # # -----------------------------------------------------------------------------
* GHC new build system megapatchIan Lynagh2009-04-261-0/+27