Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Uncomment this to turn on verbose mode.
4 # export DH_VERBOSE=1
5
6 # see FEATURE AREAS in dpkg-buildflags(1)
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
8
9 export QT_SELECT := 5
10
11 # Explicitly enable hardening
12 DPKG_EXPORT_BUILDFLAGS = 1
13 include /usr/share/dpkg/buildflags.mk
14
15 include /usr/share/dpkg/architecture.mk
16
17 # Retrieve version info
18 include /usr/share/dpkg/default.mk
19
20 VERSION = $(DEB_VERSION_UPSTREAM)
21
22 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
23 BUILD_DOC_OPTION := ON
24 else
25 BUILD_DOC_OPTION := OFF
26 endif
27
28
29 %:
30 dh $@
31
32 override_dh_auto_configure:
33 dh_auto_configure -- \
34 -DBUILD_EXAMPLES=OFF \
35 -DBUILD_DOCS=$(BUILD_DOC_OPTION) \
36 -DBUILD_WITH_SYSTEMD=ON \
37 -DDTK_VERSION=$(VERSION) \
38 $(NULL)
39
40 override_dh_installchangelogs:
41 dh_installchangelogs -k CHANGELOG.md
42
43
44 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
45 execute_after_dh_install:
46 # Do not install .qch file even when documentation is being built (#1133784)
47 #dh_install debian/tmp/usr/share/qt5/doc/dtkcore.qch /usr/share/qt5/doc/
48 true
49 endif