#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow export DEB_CPPFLAGS_MAINT_APPEND = -I$(CURDIR) export PYBUILD_NAME=skbio export MPLBACKEND=agg DOCPKG=python-$(PYBUILD_NAME)-doc export USE_CYTHON=1 %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_configure: mv simde-sse2.h simde-sse2.h.orig rm -f skbio/alignment/_ssw_wrapper.c skbio/diversity/_phylogenetic.c skbio/stats/__subsample.c skbio/metadata/_intersection.c dh_auto_configure override_dh_auto_build-arch: dh_auto_build override_dh_auto_build-indep: dh_auto_build ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) \ http_proxy='127.0.0.1:9' \ python3 `which sphinx-build` -b html -d doc/build/doctrees doc/source doc/build/html endif override_dh_auto_test-indep: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) echo No testing for the -doc package endif override_dh_auto_clean: if [ "`find . -name "*.pyo"`" = "" ] ; then echo no need to clean up ; else dh_auto_clean; fi override_dh_clean: dh_clean find ./skbio -name '*.so' -delete find ./skbio -name '*.o' -delete rm -rf doc/build build doc/source/generated find doc -name *.doctree -delete rm -rf .pybuild rm -f scikit_bio.egg-info/PKG-INFO scikit_bio.egg-info/SOURCES.txt scikit_bio.egg-info/dependency_links.txt scikit_bio.egg-info/requires.txt scikit_bio.egg-info/top_level.txt rm -f skbio/alignment/_ssw_wrapper.c skbio/diversity/_phylogenetic.c skbio/stats/__subsample.c skbio/metadata/_intersection.c mv simde-sse2.h.orig simde-sse2.h || true override_dh_sphinxdoc: ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) dh_link --package=$(DOCPKG) \ /usr/share/javascript/mathjax/MathJax.js \ /usr/share/doc/$(DOCPKG)/html/_static/MathJax.js dh_sphinxdoc --package=$(DOCPKG) endif