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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
override_dh_auto_configure:
dh_auto_configure -- --without-archnative
override_dh_auto_install:
dh_auto_install --max-parallel=1
cd debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH); \
ln -s liblinbox-$(DEB_VERSION_UPSTREAM).so.0.0.0 \
liblinbox-$(DEB_VERSION_UPSTREAM).so; \
sed -e 's|-llinbox|-llinbox-$(DEB_VERSION_UPSTREAM)|' \
-i pkgconfig/linbox.pc
override_dh_auto_build-indep:
dh_testdir
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
$(MAKE) docs
rm -f doc/linbox-html/INSTALL
rm -f doc/linbox-html/COPYING
jdupes -l doc/linbox-html
endif
execute_after_dh_installdocs-indep:
dh_doxygen
# exclude Makefiles from example directories; they are generated by autotools
# and result in non-reproducible builds
override_dh_installexamples:
dh_installexamples -XMakefile
override_dh_auto_clean:
dh_auto_clean
rm -f _configs.sed doc/Doxyfile doc/DoxyfileDev doc/doxy.debug doc/doxydev.debug linbox/config.h tests/temp2
# don't remove interfaces/maple/lb-maple.mpl.bak; under version control
override_dh_clean:
dh_clean -Xbak
%:
dh $@
|