File: rules

package info (click to toggle)
python-maxminddb 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,880 kB
  • ctags: 250
  • sloc: python: 1,052; ansic: 476; perl: 428; makefile: 137; sh: 43
file content (19 lines) | stat: -rwxr-xr-x 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export PYBUILD_NAME=maxminddb

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	PYTHONPATH=.:$$PYTHONPATH sphinx-build -b html -d .build/.doctrees -N docs .build/html
	dh_auto_build

override_dh_auto_clean:
	dh_auto_clean
	rm -f maxminddb/extension.so maxminddb/extension.*.so
	rm -rf .build/ maxminddb.egg-info/

override_dh_auto_test:
	dh_auto_test -- --before-test "ln -sf {dir}/README.rst {build_dir}/" \
			--after-test "rm -f {build_dir}/README.rst"