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
|
#!/usr/bin/make -f
# -*- makefile -*-
export PYBUILD_NAME=sdl2
export SDL_VIDEODRIVER=dummy
export SDL_AUDIODRIVER=dummy
export SDL_RENDER_DRIVER=software
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
execute_before_dh_auto_build:
mkdir -p ./doc/_static
set -e; \
for i in ./doc/modules/images/*.dia; do \
dia "$${i}" --filter=png-libart --export="$$(echo $$i|sed 's/\.dia$$//').png"; \
done
rsvg-convert --format=png --background-color=white examples/resources/testimage.svg|convert png:- examples/resources/hello.bmp
execute_before_dh_sphinxdoc:
PYTHONPATH=. python3 -m sphinx -b html doc/ debian/pysdl2-doc/usr/share/doc/pysdl2-doc/html/
execute_before_dh_auto_clean:
rm -f ./doc/modules/images/*.png examples/resources/hello.bmp examples/resources/hello.png
rm -rf build
override_dh_installchangelogs:
dh_installchangelogs doc/news.rst
|