Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # see FEATURE AREAS in dpkg-buildflags(1)
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 # Ensure that we link against all needed libraries (cf. Policy 10.2)
7 export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs
8
9 # verbose testsuite results (#754692)
10 export VERBOSE=1
11
12 ifneq ($(wildcard /usr/include/systemd/sd-journal.h),)
13 enable-systemd-journal=--enable-systemd-journal
14 endif
15
16 %:
17 dh $@
18
19 override_dh_auto_configure:
20 dh_auto_configure -- \
21 $(enable-systemd-journal) \
22 --with-socket-dir=/tmp \
23 --disable-static
24
25 override_dh_auto_install:
26 dh_auto_install
27 rm -v debian/tmp/usr/lib/*/lib*.la
28 cd debian/tmp/usr/share/doc/libqb && \
29 rm -v COPYING INSTALL README.markdown
30
31 override_dh_installdocs:
32 dh_installdocs -A README.markdown