summaryrefslogtreecommitdiffstats
path: root/developer-doc/phb/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'developer-doc/phb/CMakeLists.txt')
-rw-r--r--developer-doc/phb/CMakeLists.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/developer-doc/phb/CMakeLists.txt b/developer-doc/phb/CMakeLists.txt
new file mode 100644
index 0000000..c90d9f1
--- /dev/null
+++ b/developer-doc/phb/CMakeLists.txt
@@ -0,0 +1,36 @@
+
+set( STYLESHEET tde-nochunk.xsl )
+
+
+##### generate developer documentation
+
+add_custom_command(
+ OUTPUT phb.html
+ COMMENT "Generating developer documentation"
+ COMMAND ${KDE3_MEINPROC_EXECUTABLE}
+ --stylesheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/${STYLESHEET}
+ ${CMAKE_CURRENT_SOURCE_DIR}/phb.docbook --stdout |
+ ${ICONV_EXECUTABLE} -f ISO-8859-1 -t UTF-8 |
+ ${SED_EXECUTABLE} "s/ISO-8859-1/UTF-8/g" > phb.html
+)
+add_custom_target( phb-docs-html ALL
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/phb.html
+)
+
+
+##### generate pdf for developer documentation
+
+if( BUILD_PDF_DOCS)
+ add_custom_command(
+ OUTPUT kmymoney-phb.pdf
+ COMMENT "Generating pdf for developer documentation"
+ COMMAND ${KDE3_MEINPROC_EXECUTABLE}
+ --stylesheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/${STYLESHEET}
+ ${CMAKE_CURRENT_SOURCE_DIR}/phb.docbook --stdout |
+ ${HTML2PS_EXECUTABLE} -n |
+ ${PS2PDF_EXECUTABLE} - kmymoney-phb.pdf
+ )
+ add_custom_target( phb-docs-pdf ALL
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kmymoney-phb.pdf
+ )
+endif()