From 8b7f762e49180a4776224d4118ac44aebe1aadc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 1 Aug 2021 10:58:00 +0200 Subject: Use common rules for build and install documentation and translations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- doc/CMakeLists.txt | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 doc/CMakeLists.txt (limited to 'doc/CMakeLists.txt') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt deleted file mode 100644 index f6eec15..0000000 --- a/doc/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) -list( REMOVE_ITEM _dirs html man ) - -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _dir IN LISTS _dirs ) - if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} - AND ( "${_dir}" STREQUAL "en" OR - "${_linguas}" MATCHES "^;*$" OR - ";${_linguas};" MATCHES ";${_dir};" )) - file( GLOB _doc_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} ${_dir}/*.docbook ) - if( _doc_files ) - list( FIND _doc_files "index.docbook" _find_index ) - if( -1 EQUAL _find_index ) - set( _noindex "NOINDEX" ) - else() - unset( _noindex ) - endif() - tde_create_handbook( - SOURCE_BASEDIR ${_dir} - ${_noindex} - LANG ${_dir} - DESTINATION ${PROJECT_NAME} - ) - endif() - endif() -endforeach() - -if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/html/CMakeLists.txt ) - add_subdirectory( html ) -endif() -if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/man/CMakeLists.txt ) - add_subdirectory( man ) -endif() -- cgit v1.2.1