File: rules

package info (click to toggle)
python-fluids 0.1.73-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,092 kB
  • sloc: python: 39,174; f90: 1,033; makefile: 48
file content (33 lines) | stat: -rwxr-xr-x 1,058 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
29
30
31
32
33
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export PY3VER=$(shell py3versions -vd)

export PYBUILD_NAME=fluids
export PYBUILD_INSTALL_ARGS=--install-layout=deb
export PYBUILD_TEST_ARGS=-k-online -k-slow

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

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html # HTML generator

override_dh_installdocs:
	dh_installdocs --doc-main-package=python-fluids-doc -ppython-fluids-doc
	dh_installdocs --doc-main-package=python-fluids-doc -ppython-fluids
	dh_installdocs --doc-main-package=python-fluids-doc -ppython3-fluids

override_dh_sphinxdoc:
	dh_link -ppython-fluids-doc /usr/share/javascript/mathjax/MathJax.js /usr/share/doc/python-fluids-doc/html/_static/MathJax.js
	dh_sphinxdoc

override_dh_auto_install:
	find . -type f -name LICENSE -delete
	dh_auto_install

override_dh_missing:
	dh_missing --fail-missing