Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYTHONDONTWRITEBYTECODE=1
4
5 %:
6 dh $@ --with python3,sphinxdoc
7
8 clean:
9 dh $@
10
11 override_dh_auto_install:
12 sed -i.bak -e 's/flent =/run =/' -e 's/flent-gui =/run-gui =/' setup.py
13 chmod +x flent/scripts/*.sh
14 python3 setup.py install --root=debian/flent --install-layout=deb --install-lib=/usr/share/flent --install-scripts=/usr/share/flent
15
16 override_dh_auto_build:
17
18 override_dh_auto_clean:
19 dh_auto_clean
20 rm -rf build
21 rm -rf doc/_build
22 rm -rf *.egg-info
23 ! [ -f setup.py.bak ] || mv setup.py.bak setup.py
24
25 override_dh_auto_test:
26 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
27 $(MAKE) test PYTHON=python3
28 endif
29
30 override_dh_installdocs:
31 $(MAKE) -C doc/ html
32 # web site index - use contents.html instead
33 rm -f doc/_build/html/index.html
34 dh_installdocs