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
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/buildtools.mk
include /usr/share/dpkg/architecture.mk
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
CONFIGURE_FLAGS = --=$(DEB_HOST_GNU_CPU)-$(DEB_HOST_ARCH_OS) CC=$(CC) CXX=$(CXX) AR=$(AR)
endif
export MAKE_OVERRIDE = V=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# https://github.com/flintlib/flint/issues/2340
export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing
%:
dh $@ --with sphinxdoc
override_dh_auto_build:
dh_auto_build -- $(MAKE_OVERRIDE)
make -C doc html
make -C doc latexpdf
override_dh_auto_install:
dh_auto_install
find . -name libflint.a -delete
override_dh_auto_test:
dh_auto_test -- $(MAKE_OVERRIDE)
override_dh_auto_clean:
dh_auto_clean
rm -rf config.status libtool src/config.h src/flint.h doc/build
|