| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# DH_VERBOSE := 1 |
| 4 |
|
| 5 |
# Verbose make output |
| 6 |
export VERBOSE=1 |
| 7 |
|
| 8 |
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --builddirectory=build |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure -- -DINSTALL_GDALCPP=ON |
| 15 |
|
| 16 |
override_dh_auto_build-arch: |
| 17 |
dh_auto_build --arch |
| 18 |
|
| 19 |
override_dh_auto_build-indep: |
| 20 |
(cd build && $(MAKE) doc) |
| 21 |
|
| 22 |
override_dh_auto_test-arch: |
| 23 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 24 |
(cd build && ctest -V) |
| 25 |
endif |
| 26 |
|
| 27 |
override_dh_auto_test-indep: |
| 28 |
# Skip tests when build-arch target was not executed |
| 29 |
|
| 30 |
override_dh_installchangelogs: |
| 31 |
dh_installchangelogs -k CHANGELOG.md |
| 32 |
|
| 33 |
execute_after_dh_installdocs: |
| 34 |
# Remove useless autogenerated doxygen file |
| 35 |
$(RM) debian/*/usr/share/doc/*/html/*.md5 |