From cd92098caa64b7fd30cdc6b5d56bf7e9e17a449e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 19 Apr 2022 13:06:44 +0200 Subject: Avoid building all docs in nodoc build profile Differentiating between different types of documentation we build helps in better expressing what needs to be done for our arch:any and arch:all packages currently as well. --- doc/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'doc/CMakeLists.txt') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 3060949e5..72a1fed88 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,4 +1,6 @@ +if (WITH_DOC OR WITH_DOC_MANPAGES OR WITH_DOC_GUIDES) include(Documentation) +endif() set(LINGUAS de @@ -21,7 +23,7 @@ set(ENTITIES ../vendor/${CURRENT_VENDOR}/apt-vendor.ent ) -if(WITH_DOC) +if(WITH_DOC OR WITH_DOC_GUIDES) add_docbook(apt-doc HTML TEXT ALL DOCUMENTS guide.dbk @@ -43,7 +45,9 @@ add_docbook(libapt-pkg-doc HTML TEXT ALL TRANSLATED_ENTITIES ${TRANSLATED_ENTITIES} DEPENDS ${ENTITIES} ) +endif() +if(WITH_DOC OR WITH_DOC_DOXYGEN) find_package(Doxygen REQUIRED) file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc") @@ -65,9 +69,9 @@ install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/html PATTERN "*.map" EXCLUDE PATTERN "*.md5" EXCLUDE ) - endif() +if(WITH_DOC OR WITH_DOC_MANPAGES) add_docbook(apt-man MANPAGE ALL DOCUMENTS apt.8.xml @@ -93,7 +97,12 @@ add_docbook(apt-man MANPAGE ALL TRANSLATED_ENTITIES ${TRANSLATED_ENTITIES} LINGUAS ${LINGUAS} ) +endif() +if(WITH_DOC OR WITH_DOC_MANPAGES OR WITH_DOC_GUIDES) add_update_po4a(update-po4a po/${PROJECT_NAME}-doc.pot "po/header.pot.txt") +endif() +if(WITH_DOC OR WITH_DOC_EXAMPLES) add_subdirectory(examples) +endif() -- cgit v1.2.3-70-g09d2