File: rules

package info (click to toggle)
pysdl2 0.9.6+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,204 kB
  • sloc: python: 16,109; makefile: 213; sh: 32
file content (28 lines) | stat: -rwxr-xr-x 784 bytes parent folder | download
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

override_dh_auto_build:
	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
	$(MAKE) -C doc devhelp
	dh_auto_build

override_dh_auto_clean:
	$(MAKE) -C doc clean
	rm -f ./doc/modules/images/*.png examples/resources/hello.bmp examples/resources/hello.png
	rm -rf build
	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs doc/news.rst