]> granicus.if.org Git - icinga2/commitdiff
Always install the unprocessed markdown documentation.
authorGerd von Egidy <gerd@egidy.de>
Thu, 1 May 2014 14:19:20 +0000 (16:19 +0200)
committerGerd von Egidy <gerd@egidy.de>
Thu, 1 May 2014 14:19:20 +0000 (16:19 +0200)
Refs #6100

doc/CMakeLists.txt

index 1d81e4a8633513bc572ef212926628825b141963..789b601907edd9f3321848f986f715333aa90195 100644 (file)
@@ -15,9 +15,9 @@
 # along with this program; if not, write to the Free Software Foundation
 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
-if(UNIX OR CYGWIN)
-  file(GLOB DOCSRCS "*.md")
+file(GLOB DOCSRCS "*.md")
 
+if(UNIX OR CYGWIN)
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/htdocs/index.html
     COMMAND ./mkdoc.sh
@@ -38,3 +38,17 @@ if(UNIX OR CYGWIN)
     DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
   )
 endif()
+
+# pandoc is not available or working everywhere, so install the unprocessed markdown files too
+install(
+  FILES ${DOCSRCS}
+  DESTINATION ${CMAKE_INSTALL_DOCDIR}/markdown
+)
+
+if(UNIX OR CYGWIN)
+  # maybe someone wants to process his own doc files after installing current pandoc/sphinx
+  install(
+    FILES conf.py mkdoc.sh
+    DESTINATION ${CMAKE_INSTALL_DOCDIR}/markdown
+  )
+endif()