| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
# We're going to do something ultra funky now. |
| 11 |
# Try to configure the package twice, in different build |
| 12 |
# directories, once with and once without GSI mode. |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure -Bbuild-gsi -- $(shell dpkg-buildflags --export=configure) |
| 16 |
dh_auto_configure -Bbuild-nogsi -- --disable-gsi-mode $(shell dpkg-buildflags --export=configure) |
| 17 |
|
| 18 |
override_dh_auto_build: |
| 19 |
dh_auto_build -Bbuild-gsi |
| 20 |
dh_auto_build -Bbuild-nogsi |
| 21 |
|
| 22 |
# It's ok to share the same destdir between the builds; overlapping |
| 23 |
# files are identical. |
| 24 |
override_dh_auto_install: |
| 25 |
dh_auto_install -Bbuild-gsi --destdir=debian/tmp |
| 26 |
dh_auto_install -Bbuild-nogsi --destdir=debian/tmp |
| 27 |
|
| 28 |
override_dh_installchangelogs: |
| 29 |
dh_installchangelogs ChangeLog |
| 30 |
|
| 31 |
override_dh_auto_clean: |
| 32 |
dh_auto_clean -Bbuild-gsi |
| 33 |
dh_auto_clean -Bbuild-nogsi |