diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-11-19 15:34:21 +0100 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-11-22 11:59:10 +0800 |
commit | 43dcc7c7e53fb20eee883ecb8837f9c7cd43899d (patch) | |
tree | 874bd1313d9444c0aa661db4d2f3952a2a1d946e /doc | |
parent | 55522e2e3f762f435a97cf3bfc4d83df27be1002 (diff) | |
download | basket-43dcc7c7e53fb20eee883ecb8837f9c7cd43899d.tar.gz basket-43dcc7c7e53fb20eee883ecb8837f9c7cd43899d.zip |
Drop automake build support.
Add basic cmake build instructions.
Delete empty files ChangeLog, NEWS and TODO.
Rework of the README file.
Update some cmake files with latest macros.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 039945bdcc926c6460cfb2c4372f370744b16d22)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 38 | ||||
-rw-r--r-- | doc/Makefile.am | 6 | ||||
-rw-r--r-- | doc/en/Makefile.am | 2 |
3 files changed, 29 insertions, 17 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 70d6348..f6eec15 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,14 +1,34 @@ 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 ${_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( ) +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() diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index 57a0b81..0000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -# the SUBDIRS is filled automatically by am_edit. If files are -# in this directory they are installed into the english dir - -KDE_LANG = en -KDE_DOCS = basket -SUBDIRS = $(AUTODIRS) diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am deleted file mode 100644 index 6a0bb94..0000000 --- a/doc/en/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -KDE_DOCS = basket -KDE_LANG = en |