Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3
4 # FR the include below loads various mk files:
5 #
6 include /usr/share/dpkg/default.mk
7 #
8 # include $(dpkg_datadir)/architecture.mk
9 # include $(dpkg_datadir)/buildflags.mk
10 # include $(dpkg_datadir)/pkg-info.mk
11 # include $(dpkg_datadir)/vendor.mk
12
13 # export DH_VERBOSE=1
14 # export DH_OPTIONS=-v
15
16 export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
17
18 export build_multiarch_dir ?= $(shell dpkg-architecture -q DEB_BUILD_MULTIARCH)
19
20 # Hardening stuff, see http://wiki.debian.org/Hardening
21 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
22 DPKG_EXPORT_BUILDFLAGS = 1
23
24 # For automating the d/*.links stuff.
25 export LIB_VERSION=$(DEB_VERSION_UPSTREAM)
26 export LIB_SOVERSION=3
27
28 %:
29 dh $@ --build-system=cmake
30
31 override_dh_auto_clean:
32
33 rm -f debian/libpwizlite.3
34 rm -rf debian/includes
35 rm -rf obj-$(build_multiarch_dir)
36
37 dh_clean
38
39
40 override_dh_auto_configure:
41 dh_auto_configure -- \
42 -DCMAKE_INSTALL_PREFIX="/usr" \
43 -DCMAKE_BUILD_TYPE=release
44
45 rst2man debian/libpwizlite.3.rst > debian/libpwizlite.3
46
47 sh debian/make-included-headers-hierarchy.sh
48