]> git.openstreetmap.org Git - nominatim.git/blob - docs/CMakeLists.txt
Merge pull request #874 from lonvia/check-for-updates
[nominatim.git] / docs / CMakeLists.txt
1 # Auto-generated vagrant install documentation
2
3 set (INSTALLDOCFILES
4      Install-on-Centos-7
5      Install-on-Ubuntu-16
6     )
7
8 foreach (df ${INSTALLDOCFILES})
9     ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${df}.md
10         COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/${df}.sh ${CMAKE_CURRENT_BINARY_DIR}/${df}.md
11         MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/vagrant/${df}.sh
12         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh
13         COMMENT "Creating markdown docs from vagrant/${df}.sh"
14         )
15
16 ADD_CUSTOM_TARGET( md_install_${df} ALL
17         DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${df}.md
18         )
19 endforeach()
20
21 # Copied static documentation
22
23 set (GENERALDOCFILES
24      Installation.md
25      Import-and-Update.md
26      Faq.md
27     )
28
29 foreach (df ${GENERALDOCFILES})
30    CONFIGURE_FILE(${df} ${df})
31 endforeach()
32