File: rules

package info (click to toggle)
qpdf 10.1.0-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 55,272 kB
  • sloc: cpp: 47,356; xml: 9,172; perl: 8,141; sh: 4,277; ansic: 3,204; makefile: 98; python: 45
file content (37 lines) | stat: -rwxr-xr-x 1,140 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_MAKE_CHECK_TARGET = check

%:
	dh $@

override_dh_compress:
	dh_compress --exclude=qpdf-manual --exclude=.css --exclude examples/

override_dh_auto_clean:
	make distclean CLEAN=1

override_dh_auto_configure:
	dh_auto_configure -- \
	  --libdir="\$${prefix}/lib/$(DEB_HOST_MULTIARCH)" \
	  --enable-crypto-gnutls --disable-implicit-crypto \
	  --enable-show-failed-test-output --disable-check-autofiles

override_dh_install:
	dh_install
	mkdir -p debian/libqpdf-dev/usr/share/doc/libqpdf-dev/examples
	cp -p examples/*.cc examples/*.c \
		debian/libqpdf-dev/usr/share/doc/libqpdf-dev/examples
	cp -p README.md debian/libqpdf-dev/usr/share/doc/libqpdf-dev/README.md
	mkdir -p debian/qpdf/usr/share/bash-completion/completions
	cp completions/bash/qpdf \
		debian/qpdf/usr/share/bash-completion/completions/qpdf
	mkdir -p debian/qpdf/usr/share/zsh/vendor-completions
	cp completions/zsh/_qpdf \
		debian/qpdf/usr/share/zsh/vendor-completions/_qpdf
	dh_missing --list-missing -X.la