#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2014, by the GROMACS development team, led by
+# Copyright (c) 2014,2015, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
if(MARKDOWN_CONFIGURE_IS_POSSIBLE AND PANDOC_EXECUTABLE)
set(name "user-guide")
configure_markdown(main.md)
- make_markdown_html(${name} ${CMAKE_CURRENT_BINARY_DIR}/main.md)
- make_markdown_pdf(${name} ${CMAKE_CURRENT_BINARY_DIR}/main.md)
+ configure_markdown(references.md)
+
+ # TODO The concatenation of the markdown into a single document on
+ # the pandoc command line generated by CMake is not pretty, but
+ # there's no standard native include-file mechanism in
+ # Markdown. We should resolve this when we agree on a final
+ # generation platform.
+ list(APPEND list_of_markdown_files
+ ${CMAKE_CURRENT_SOURCE_DIR}/getting-started.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/tools.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/mdp-options.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/cutoff-schemes.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/mdrun-features.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/mdrun-performance.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/file-formats.md
+ ${CMAKE_CURRENT_SOURCE_DIR}/environment-variables.md
+ )
+
+ make_markdown_html(${name} ${CMAKE_CURRENT_BINARY_DIR}/main.md ${list_of_markdown_files} ${CMAKE_CURRENT_BINARY_DIR}/references.md)
+ make_markdown_pdf(${name} ${CMAKE_CURRENT_BINARY_DIR}/main.md ${list_of_markdown_files} ${CMAKE_CURRENT_BINARY_DIR}/references.md)
# Add a top-level target for the webpage build to hook onto
add_custom_target(${name}