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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export TOP_SRCDIR=$(CURDIR)
ifneq (,$(filter $(DEB_HOST_MULTIARCH), alpha-linux-gnu mipsel-linux-gnu))
DEB_PKG_NMZ_OPENMP=no
else
DEB_PKG_NMZ_OPENMP=yes
endif
ifneq (,$(filter $(DEB_HOST_MULTIARCH), alpha-linux-gnu m68k-linux-gnu sh4-linux-gnu x86_64-linux-gnux32))
DEB_PKG_NMZ_FLINT=no
else
DEB_PKG_NMZ_FLINT=yes
endif
default:
@uscan --no-conf --dehs --report || true
%:
dh $@ --builddirectory=_build
override_dh_auto_configure:
dh_auto_configure -- --enable-openmp=$(DEB_PKG_NMZ_OPENMP) --enable-flint=$(DEB_PKG_NMZ_FLINT)
override_dh_auto_build-indep:
$(MAKE) -C doc -f $(CURDIR)/debian/adhoc/Makefile doc
override_dh_auto_build-arch:
dh_auto_build -a
override_dh_auto_test-indep:
override_dh_prep-arch:
$(MAKE) -f $(CURDIR)/debian/adhoc/Makefile manpages
override_dh_auto_install-indep:
$(MAKE) -C _build/source install-data-am DESTDIR=$(CURDIR)/debian/tmp
override_dh_compress-indep:
dh_compress -X.pdf -Xexamples
|