Commit 13ab2c64 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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: default avatarSergei Trofimovich <siarheit@google.com>
parent d6512c74
......@@ -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) \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment