#!/usr/bin/make -f # See debhelper(7) (uncomment to enable). # Output every command that modifies files on the build system. #export DH_VERBOSE = 1 # Enable to deliver compiler commands to blhc. export CMAKE_ARGS=-DCMAKE_VERBOSE_MAKEFILE=ON export PYBUILD_NAME=samplerate export DPKG_EXPORT_BUILDFLAGS = 1 export DEB_BUILD_MAINT_OPTIONS := hardening=+all # Extra hardening flags (-D_FORTIFY_SOURCE, ...) export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) include /usr/share/dpkg/buildflags.mk %: dh $@ --buildsystem=pybuild --with sphinxdoc PY3DEFAULTVER=$(shell py3versions -d -v) PYTHON3PATH=.pybuild/cpython3_$(PY3DEFAULTVER)_samplerate/build # If you need to rebuild the Sphinx documentation: # Add sphinxdoc to the dh --with line. # execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9 execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9 execute_after_dh_auto_build-indep: PYTHONPATH=$(PYTHON3PATH) \ python3 -m sphinx -N -bhtml \ docs/ build/html # HTML generator : # remove privacy-breach stuff related to https://ghbtns.com/ for f in $$(grep -rl ghbtns.com build/html); do \ sed -i '/