File: rules

package info (click to toggle)
libqb 2.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,916 kB
  • sloc: ansic: 22,138; sh: 4,465; makefile: 586
file content (32 lines) | stat: -rwxr-xr-x 754 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Ensure that we link against all needed libraries (cf. Policy 10.2)
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs

# verbose testsuite results (#754692)
export VERBOSE=1

ifneq ($(wildcard /usr/include/systemd/sd-journal.h),)
enable-systemd-journal=--enable-systemd-journal
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		$(enable-systemd-journal) \
		--with-socket-dir=/tmp \
		--disable-static

override_dh_auto_install:
	dh_auto_install
	rm -v debian/tmp/usr/lib/*/lib*.la
	cd debian/tmp/usr/share/doc/libqb && \
	    rm -v COPYING INSTALL README.markdown

override_dh_installdocs:
	dh_installdocs -A README.markdown