From cff81ff3e7d0bf2da89141f72a59284c9d669ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 1 Aug 2021 10:56:47 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 8 ++++++-- doc/CMakeLists.txt | 14 -------------- doc/en/CMakeLists.txt | 1 - doc/en/index.cache.bz2 | Bin 5776 -> 0 bytes doc/man/CMakeLists.txt | 5 ----- translations/CMakeLists.txt | 1 - translations/messages/CMakeLists.txt | 14 -------------- 7 files changed, 6 insertions(+), 37 deletions(-) delete mode 100644 doc/CMakeLists.txt delete mode 100644 doc/en/CMakeLists.txt delete mode 100644 doc/en/index.cache.bz2 delete mode 100644 doc/man/CMakeLists.txt delete mode 100644 translations/CMakeLists.txt delete mode 100644 translations/messages/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2af19..bca48a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,8 +69,12 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( src ) -tde_conditional_add_subdirectory( BUILD_DOC doc ) -tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) + + +##### other data ################################ + +tde_conditional_add_project_docs( BUILD_DOC ) +tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) ##### write configure files diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt deleted file mode 100644 index 70d6348..0000000 --- a/doc/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _dir ${_dirs} ) - if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND - EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt ) - if( "${_dir}" STREQUAL "en" OR - "${_dir}" STREQUAL "man" OR - "${_linguas}" MATCHES "^;*$" OR - ";${_linguas};" MATCHES ";${_dir};" ) - add_subdirectory( ${_dir} ) - endif( ) - endif() -endforeach() diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt deleted file mode 100644 index ba3ef3e..0000000 --- a/doc/en/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_handbook( DESTINATION ${PROJECT_NAME} ) diff --git a/doc/en/index.cache.bz2 b/doc/en/index.cache.bz2 deleted file mode 100644 index 9610a7766bff9fa5c27592095bf0dfbd78b9df0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5776 zcmV;B7H{c7T4*&fL0KkKSxyL)RR9ym-}O>3d;kCc|NsBszyJU6KmY^=Kp+qR5CC8w zsdZ0%x<{Imo6jxUdokUfyb@P#0m@Wn#_r)sQP_`NI#p&3<=1+|wYF&$+j9*r&Yccx zHASXf;nMlzL4) zL7*Bm&;T?54FCb40Hq{>8B9ijpp7ZEny2b|O-&jPP{?|X7>xh`(9lGY0GgP9n3#yu zNwf-WO!P!(^#A|?>Hr`|XbF%f0+22)^nzjBG4y_abGcD_6j;t5()8>&vmi1JmyVMN zRK9e49tJ;B(GSUAw9MmlSMAq)V)@y+{6A$%6_9H(d)cucou``&|7-YhK!ZB41RlY> z7J#)tW`ZaRKPsG#XMXb6#tS5n6AiEbm>WE)3W3SySUjgvo0&W(^w)Pcj+@qzZSOyB zQkdD+mps6tHp_!viWoe=nG#t$a4aA{_siVgq&*NOc5rZb9dSVvQ4H(X4nl2`m5&;) zFA@Tl#?iPLS(^qlptP+h8&D2)zrgb@0R}msKg6@%p zg2CT~qB^&6*;{R$UT>e~ZXJMtPK=KmQQB9!X&#Kq^y8j)ILmX&+(EcJfo`Ep#Hg~e zlJj17y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