From 6e709a71125d1df2fe433021965b7a02b9c245a8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Nov 2011 17:42:43 -0600 Subject: Fix doc build --- doc/CMakeLists.txt | 66 ++++++++++----------------------------------------- doc/en/CMakeLists.txt | 12 ++++++++++ doc/nl/CMakeLists.txt | 12 ++++++++++ 3 files changed, 36 insertions(+), 54 deletions(-) create mode 100644 doc/en/CMakeLists.txt create mode 100644 doc/nl/CMakeLists.txt (limited to 'doc') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 0e37249..d460608 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,54 +1,12 @@ -#first straigth forward until we have a doc translation - -MACRO (GENBOOK _language_code) - FILE(GLOB docimages RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code} ${_language_code}/hi128-filesys-*.png) - ADD_CUSTOM_COMMAND( - OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 - COMMAND - ${KDE3_MEINPROC_EXECUTABLE} - ARGS "--check" "--cache" "${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2" - ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook - DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook - ) - INSTALL(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 - DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/tdesvn - RENAME - index.cache.bz2 - ) - INSTALL(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook - DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/tdesvn - ) - - FOREACH(_img ${docimages}) - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/${_img} - ${CMAKE_CURRENT_BINARY_DIR}/${_language_code}/${_img} - COPYONLY - ) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_language_code}/${_img} - DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/tdesvn - ) - ENDFOREACH(_img) - - ADD_CUSTOM_TARGET(${_language_code}_doc - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 - ) - ADD_DEPENDENCIES(doc ${_language_code}_doc) - -ENDMACRO (GENBOOK) - -IF (KDE3_MEINPROC_EXECUTABLE) - ADD_CUSTOM_TARGET(doc ALL) - GENBOOK(en) - GENBOOK(nl) - # creates the link to the common-section during install - INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/makelink.cmake) - -#${CMAKE_CURRENT_BINARY_DIR}/common) - -ENDIF (KDE3_MEINPROC_EXECUTABLE) - -ADD_SUBDIRECTORY(man) - +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_auto_add_subdirectories() diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt new file mode 100644 index 0000000..affe2dc --- /dev/null +++ b/doc/en/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( LANG en DESTINATION tdesvn ) diff --git a/doc/nl/CMakeLists.txt b/doc/nl/CMakeLists.txt new file mode 100644 index 0000000..0ea9125 --- /dev/null +++ b/doc/nl/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( LANG nl DESTINATION tdesvn ) -- cgit v1.2.1