summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-11 18:09:39 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-11 19:51:07 +0200
commit281383ce1b020013737b28d87988bdf477a90477 (patch)
treec52ece3d6a32833c7a06dcc5462d5f04e289fcab
parent389e8322fcd380d133892bc6f126e56737739fa5 (diff)
CMake: Exclude .md5 and .map doxygen files from install
This is much better than removing them in debian/rules. Gbp-Dch: ignore
-rwxr-xr-xdebian/rules2
-rw-r--r--doc/CMakeLists.txt5
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()