[commit: ghc] master: ghc.mk: fix docs re-rebuilding (13ab2c6)

git at git.haskell.org git at git.haskell.org
Sat Dec 5 10:41:38 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/13ab2c64a7e98bab391222dbd015ea3a4b91a9ed/ghc

>---------------------------------------------------------------

commit 13ab2c64a7e98bab391222dbd015ea3a4b91a9ed
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Sat Dec 5 10:05:54 2015 +0000

    ghc.mk: fix docs re-rebuilding
    
    The problem:
        $ make
        <watch sphinx rebuilds docs>
        # no changes in sources
        $ make
        <watch sphinx rebuilds docs again>
    
    The problem was due to wrong assumption about what
    files exactly are generated by mkUserGuidePart.
    
    Build system expected the following files to be created:
        docs/man/all-flags.gen.rst
        flags-recompilating-checking.gen.rst
    but mkUserGuidePart generated:
        docs/users_guide/all-flags.gen.rst
        flags-recompilation-checking.gen.rst
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


>---------------------------------------------------------------

13ab2c64a7e98bab391222dbd015ea3a4b91a9ed
 utils/mkUserGuidePart/ghc.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/mkUserGuidePart/ghc.mk b/utils/mkUserGuidePart/ghc.mk
index 3a654da..069634b 100644
--- a/utils/mkUserGuidePart/ghc.mk
+++ b/utils/mkUserGuidePart/ghc.mk
@@ -32,7 +32,6 @@ utils/mkUserGuidePart_GENERATED_FLAGS_SETS := \
   plugin                      \
   profiling                   \
   program-coverage            \
-  recompilating-checking      \
   recompilation-checking      \
   redirecting-output          \
   temporary-files             \
@@ -45,7 +44,7 @@ utils/mkUserGuidePart_GENERATED_RST_SOURCES_BLESSED_FILE := \
 
 utils/mkUserGuidePart_GENERATED_RST_SOURCES_OTHER_FILES := \
 		$(addprefix docs/users_guide/flags-,$(addsuffix .gen.rst,$(utils/mkUserGuidePart_GENERATED_FLAGS_SETS))) \
-		docs/man/all-flags.gen.rst
+		docs/users_guide/all-flags.gen.rst
 
 utils/mkUserGuidePart_GENERATED_RST_SOURCES := \
 		$(utils/mkUserGuidePart_GENERATED_RST_SOURCES_BLESSED_FILE) \



More information about the ghc-commits mailing list