File: rules

package info (click to toggle)
xraydb 4.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 50,668 kB
  • sloc: python: 3,317; makefile: 75; sh: 18
file content (27 lines) | stat: -rwxr-xr-x 676 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=xraydb
export PYBUILD_DIR=python

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_configure:
	cd data_sources/ && python3 create_db.py

override_dh_auto_build:
	export http_proxy=127.0.0.1:9
	dh_auto_build
	PYTHONPATH=python python3 -m sphinx -N -bhtml doc/ build/html

override_dh_auto_test:
	HOMEPATH=. PYTHONPATH=python pytest-3 python/tests/ -s -v

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r python/xraydb.egg-info/ build/ python/.pytest_cache/
	find . -name "*.pyc" -delete
	$(RM) xraydb.sqlite