1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
## inspired from mpfr material
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else ifeq ($(DEB_HOST_ARCH), alpha)
CFLAGS += -mieee
else ifeq ($(DEB_HOST_ARCH),sha4)
CFLAGS += -mieee
else
CFLAGS := $(subst -O2,-O3,$(CFLAGS))
endif
export ACLOCAL_PATH=/usr/share/gnulib/m4
default:
@uscan --no-conf --dehs --report || true
%:
dh $@ --builddirectory=_build
override_dh_auto_configure:
dh_auto_configure -- --enable-maintainer-mode
override_dh_auto_build-indep:
$(MAKE) -C _build/docs doc
override_dh_auto_test-indep:
override_dh_auto_install-indep:
override_dh_compress-indep:
dh_compress -X.pdf -Xexamples
|