diff options
author | Slávek Banko <[email protected]> | 2022-03-16 23:34:43 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-03-20 18:49:09 +0100 |
commit | febacdee5bf580932e1937f656b475762b48acd6 (patch) | |
tree | 56cf1a5ea34db847036dd71f58e1f9d7b6f128ce /developer-doc | |
parent | 9757aeb46efff389c2b118cb373206d0720235cd (diff) | |
download | kmymoney-febacdee5bf580932e1937f656b475762b48acd6.tar.gz kmymoney-febacdee5bf580932e1937f656b475762b48acd6.zip |
Conversion to the cmake building system.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit a6454b1658d325d6ff2d6ba6c349b772148798e0)
Diffstat (limited to 'developer-doc')
-rw-r--r-- | developer-doc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | developer-doc/phb/CMakeLists.txt | 36 | ||||
-rw-r--r-- | developer-doc/phb/Makefile.am | 8 |
3 files changed, 41 insertions, 5 deletions
diff --git a/developer-doc/CMakeLists.txt b/developer-doc/CMakeLists.txt new file mode 100644 index 0000000..52d7650 --- /dev/null +++ b/developer-doc/CMakeLists.txt @@ -0,0 +1,2 @@ + +add_subdirectory( phb ) 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() diff --git a/developer-doc/phb/Makefile.am b/developer-doc/phb/Makefile.am index 9e38295..f3024e5 100644 --- a/developer-doc/phb/Makefile.am +++ b/developer-doc/phb/Makefile.am @@ -19,9 +19,9 @@ STYLESHEET = tde-nochunk.xsl phb.html: $(DOCBOOK_FILES) @if test -e $(MEINPROC); then \ - echo $(MEINPROC) --stylesheet $(kde_libs_prefix)/share/apps/ksgmltools2/customization/$(STYLESHEET) $(srcdir)/phb.docbook -o phb.html; \ - echo sed -i "s/ISO-8859-1/UTF-8/g" phb.html; \ - $(MEINPROC) --stylesheet $(kde_libs_prefix)/share/apps/ksgmltools2/customization/$(STYLESHEET) $(srcdir)/phb.docbook --stdout | sed "s/ISO-8859-1/UTF-8/g" > phb.html; \ + $(MEINPROC) --stylesheet $(kde_libs_prefix)/share/apps/ksgmltools2/customization/$(STYLESHEET) $(srcdir)/phb.docbook --stdout | \ + iconv -f ISO-8859-1 -t UTF-8 | \ + sed "s/ISO-8859-1/UTF-8/g" > phb.html; \ fi preview: phb.html @@ -106,10 +106,8 @@ if GENERATE_PDF kmymoney-phb.pdf: $(DOCBOOK_FILES) $(MAKE) get-files $(MEINPROC) --stylesheet `dirname $(KDE_XSL_STYLESHEET)`/tde-nochunk.xsl $(srcdir)/phb.docbook -o index.html - recode utf8..latin1 index.html || : html2ps -o kmymoney-phb.ps -n index.html ps2pdf kmymoney-phb.ps kmymoney-phb.pdf rm index.html kmymoney-phb.ps $(MAKE) clear-files endif - |