Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Last active August 8, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julian-klode/8356ea7a83ddb4034d4c272a2edeb5f0 to your computer and use it in GitHub Desktop.
Save julian-klode/8356ea7a83ddb4034d4c272a2edeb5f0 to your computer and use it in GitHub Desktop.
APT Documentation CMakeLists.txt draft
include(Documentation)
set(LINGUAS de es fr it ja nl pl pt_BR pt)
set(ENTITIES
apt.ent
apt-verbatim.ent
../vendor/${CURRENT_VENDOR}/apt-vendor.ent
)
if (WITH_DOC)
add_docbook(DOCUMENTS guide offline
INSTALL ${CMAKE_INSTALL_DOCDIR}/../apt-doc
LINGUAS ${LINGUAS}
DEPENDS ${ENTITIES}
HTML TEXT)
add_docbook(DOCUMENTS cache design dpkg-tech files method
INSTALL ${CMAKE_INSTALL_DOCDIR}/../apt-doc
LINGUAS ${LINGUAS}
DEPENDS ${ENTITIES}
HTML TEXT)
endif()
add_docbook(
DOCUMENTS
apt.8
apt-cache.8
apt-get.8
apt-cdrom.8
apt.conf.5
sources.list.5
apt-config.8
apt_preferences.5
apt-sortpkgs.1
apt-ftparchive.1
apt-extracttemplates.1
apt-key.8
apt-secure.8
apt-mark.8
DEPENDS ${ENTITIES}
LINGUAS ${LINGUAS}
MANPAGE
)
add_subdirectory(examples)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment