| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 6 |
|
| 7 |
built_binaries := $(shell dh_listpackages) |
| 8 |
|
| 9 |
configure_flags = |
| 10 |
|
| 11 |
ifeq ($(filter %-doc,$(built_binaries)),) |
| 12 |
configure_flags += -Ddocbook_docs=disabled |
| 13 |
configure_flags += -Dgtk_doc=false |
| 14 |
else |
| 15 |
configure_flags += -Ddocbook_docs=enabled |
| 16 |
configure_flags += -Dgtk_doc=true |
| 17 |
endif |
| 18 |
|
| 19 |
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 20 |
configure_flags += -Dman=true |
| 21 |
else |
| 22 |
configure_flags += -Dman=false |
| 23 |
endif |
| 24 |
|
| 25 |
%: |
| 26 |
dh $@ |
| 27 |
|
| 28 |
override_dh_auto_configure: |
| 29 |
dh_auto_configure -- $(configure_flags) |
| 30 |
|