[commit: ghc] wip/nfs-locking: Generate only one rule for Haddock (Stage1). (cdf208c)
git at git.haskell.org
git at git.haskell.org
Fri Oct 27 00:06:53 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/cdf208c342c346b48f848e06b9ffc8a089326254/ghc
>---------------------------------------------------------------
commit cdf208c342c346b48f848e06b9ffc8a089326254
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date: Sun Aug 23 01:04:55 2015 +0100
Generate only one rule for Haddock (Stage1).
>---------------------------------------------------------------
cdf208c342c346b48f848e06b9ffc8a089326254
src/Rules/Documentation.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Rules/Documentation.hs b/src/Rules/Documentation.hs
index 81e3140..5978cfd 100644
--- a/src/Rules/Documentation.hs
+++ b/src/Rules/Documentation.hs
@@ -10,10 +10,10 @@ import Settings
-- All of them go into the 'doc' subdirectory. Pedantically tracking all built
-- files in the Shake databases seems fragile and unnecesarry.
buildPackageDocumentation :: Resources -> PartialTarget -> Rules ()
-buildPackageDocumentation _ target @ (PartialTarget _ pkg) =
+buildPackageDocumentation _ target @ (PartialTarget stage pkg) =
let cabalFile = pkgCabalFile pkg
haddockFile = pkgHaddockFile pkg
- in do
+ in when (stage == Stage1) $ do
haddockFile %> \file -> do
whenM (specified HsColour) $ do
need [cabalFile]
More information about the ghc-commits
mailing list