]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rudimentary installation of the documentation
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 20 Sep 2012 15:08:24 +0000 (15:08 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 20 Sep 2012 15:08:24 +0000 (15:08 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26570 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CMakeLists.txt
deal.II/doc/CMakeLists.txt [new file with mode: 0644]

index daeee3780c4cad6939c648a23c98a99cfa0b31ff..39398abbbcde99e08038ea01bbc047a10ed92c1a 100644 (file)
@@ -350,6 +350,7 @@ ADD_SUBDIRECTORY(include)
 #
 # Prepare some directories for installation:
 #
+ADD_SUBDIRECTORY(doc)
 ADD_SUBDIRECTORY(scripts)
 ADD_SUBDIRECTORY(examples)
 
diff --git a/deal.II/doc/CMakeLists.txt b/deal.II/doc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4ad86b2
--- /dev/null
@@ -0,0 +1,52 @@
+
+#
+# Set up all necessary bits for the documentation
+#
+
+IF(DEAL_II_WITH_DOXYGEN)
+
+  IF(DEAL_II_INSTALL_COMPAT_FILES)
+    #
+    # The good, old directory where the documentation gets installed to:
+    #
+    SET(DEAL_II_DOCUMENTATION_RELDIR "doc")
+  ELSE()
+    #
+    # IF DEAL_II_INSTALL_COMPAT_FILES is not set, we assume that we have to
+    # obey the file system standard, so install to usr/share/doc/deal.II.
+    #
+    SET(DEAL_II_DOCUMENTATION_RELDIR "usr/share/doc/deal.II/html")
+  ENDIF()
+
+  INSTALL(DIRECTORY .
+    DESTINATION ${DEAL_II_DOCUMENTATION_RELDIR}
+    COMPONENT documentation
+    FILES_MATCHING REGEX "^.*(html|css|136|eps|fig|png)$"  # TODO! cmapx, dot
+    )
+
+  SET(doc_files_to_configure
+    title.html.in
+    doxygen/tutorial/toc.html.in
+    doxygen/header.136.in
+    doxygen/header.tex.in
+    doxygen/options.dox.in
+    doxygen/Makefile.in
+    doxygen/options.136.in
+    doxygen/header.html.in
+    )
+
+  FOREACH(infile ${doc_files_to_configure})
+    STRING(REGEX REPLACE "\\.in$" "" outfile "${infile}" )
+    CONFIGURE_FILE(
+      ${CMAKE_CURRENT_SOURCE_DIR}/${infile}
+      ${CMAKE_CURRENT_BINARY_DIR}/${outfile}
+      )
+    INSTALL(FILES
+      ${CMAKE_CURRENT_BINARY_DIR}/${outfile}
+      DESTINATION ${DEAL_II_DOCUMENTATION_RELDIR}
+      COMPONENT documentation
+      )
+  ENDFOREACH()
+
+ENDIF(DEAL_II_WITH_DOXYGEN)
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.