From 281383ce1b020013737b28d87988bdf477a90477 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 11 Aug 2016 18:09:39 +0200 Subject: [PATCH] CMake: Exclude .md5 and .map doxygen files from install This is much better than removing them in debian/rules. Gbp-Dch: ignore --- debian/rules | 2 -- doc/CMakeLists.txt | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 9537ecd93..c1dba72af 100755 --- a/debian/rules +++ b/debian/rules @@ -15,8 +15,6 @@ override_dh_install-indep: dh_movefiles dh_install --list-missing - find debian/libapt-pkg-doc/usr/share/doc/libapt-pkg-doc/html \( -name '*.md5' -o -name '*.map' \) -delete - override_dh_install-arch: dh_movefiles dh_install --fail-missing diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index fb4a9a3a4..a1491428f 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -56,7 +56,10 @@ add_custom_target(apt-doxygen ALL ) install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/html - DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc) + DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc + PATTERN "*.map" EXCLUDE + PATTERN "*.md5" EXCLUDE +) endif() -- 2.45.2