| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# DH_VERBOSE := 1 |
| 4 |
export LC_ALL=C.UTF-8 |
| 5 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 6 |
|
| 7 |
include /usr/share/dpkg/architecture.mk |
| 8 |
ifeq ($(DEB_HOST_ARCH_BITS),32) |
| 9 |
DEB_CPPFLAGS_MAINT_APPEND = -DARCH_32 |
| 10 |
endif |
| 11 |
export DEB_CPPFLAGS_MAINT_APPEND |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ |
| 15 |
|
| 16 |
override_dh_auto_clean: |
| 17 |
dh_auto_clean |
| 18 |
rm -rf $(CURDIR)/debian/sphinxdoc $(CURDIR)/debian/man $(CURDIR)/test/*.msh \ |
| 19 |
$(CURDIR)/test/*.dist $(CURDIR)/test/*.json $(CURDIR)/Makefile \ |
| 20 |
$(CURDIR)/config.log $(CURDIR)/config.status $(CURDIR)/test/screen |
| 21 |
|
| 22 |
override_dh_auto_configure: |
| 23 |
dh_auto_configure -- --with-capnp=/usr --with-gsl=/usr --prefix=$(CURDIR)/debian/tmp/usr |
| 24 |
|
| 25 |
execute_after_dh_auto_build-indep: |
| 26 |
sphinx-build doc/sphinx $(CURDIR)/debian/sphinxdoc |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 30 |
ifeq ($(DEB_HOST_ARCH_BITS),32) |
| 31 |
echo "Do not test for 32 bit archs since test results were calculated for 64 bit." |
| 32 |
else |
| 33 |
dh_auto_test --no-parallel |
| 34 |
endif |
| 35 |
endif |