| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
DOPACKAGES = $(shell dh_listpackages) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --builddirectory=build \ |
| 10 |
-O--dbgsym-migration="gss-dbg (<< 1.0.3-4~)" |
| 11 |
|
| 12 |
override_dh_autoreconf: |
| 13 |
ifneq ($(filter gss-doc,$(DOPACKAGES)),) |
| 14 |
dh_autoreconf |
| 15 |
else |
| 16 |
GTKDOCIZE=true dh_autoreconf |
| 17 |
endif |
| 18 |
|
| 19 |
CONFIGURE_FLAGS = \ |
| 20 |
--with-po-suffix \ |
| 21 |
--disable-rpath \ |
| 22 |
--with-packager=Debian \ |
| 23 |
--with-packager-version=$(DEB_VERSION) \ |
| 24 |
--with-packager-bug-reports=https://bugs.debian.org/ |
| 25 |
ifneq ($(filter gss-doc,$(DOPACKAGES)),) |
| 26 |
CONFIGURE_FLAGS += --enable-gtk-doc |
| 27 |
else |
| 28 |
CONFIGURE_FLAGS += --disable-gtk-doc |
| 29 |
endif |
| 30 |
|
| 31 |
override_dh_auto_configure: |
| 32 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 33 |
|
| 34 |
ifneq ($(filter gss-doc,$(DOPACKAGES)),) |
| 35 |
execute_after_dh_auto_build: |
| 36 |
rm -f doc/gss.html |
| 37 |
make -C build/doc gss.html |
| 38 |
endif |
| 39 |
|
| 40 |
override_dh_auto_test: |
| 41 |
datefudge "2020-01-01" dh_auto_test $(DH_BUILD_OPTS) |