File: rules

package info (click to toggle)
flask-peewee 0.6.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,304 kB
  • sloc: javascript: 9,322; python: 3,826; makefile: 127
file content (32 lines) | stat: -rwxr-xr-x 1,481 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
#!/usr/bin/make -f

export PYBUILD_NAME=flask-peewee
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ -d debian/doctrees docs/build/html # HTML generator
	PYTHONPATH=. python3 -m sphinx -N -bman docs/ -d debian/doctrees docs/build/man # Manpage generator

override_dh_auto_test:
	# The tarball doesn't contain runtest.py.

override_dh_auto_clean:
	dh_auto_clean
	rm -rf debian/doctrees

override_dh_auto_install:
	dh_auto_install
	# We don't install examples in dist-packages
	rm -r $(CURDIR)/debian/python3-flask-peewee/usr/lib/*/dist-packages/example

override_dh_link:
	dh_link
	# Use Debian-packaged jquery and and underscore
	rm $(CURDIR)/debian/python3-flask-peewee/usr/lib/python3/dist-packages/flask_peewee/static/js/jquery.min.js
	dh_link -ppython3-flask-peewee usr/share/javascript/jquery/jquery.min.js usr/lib/python3/dist-packages/flask_peewee/static/js/jquery.min.js
	rm $(CURDIR)/debian/python-flask-peewee-doc/usr/share/doc/python-flask-peewee-doc/html/_static/jquery.js
	dh_link -ppython-flask-peewee-doc usr/share/javascript/jquery/jquery.min.js usr/share/doc/python-flask-peewee-doc/html/_static/jquery.js
	rm $(CURDIR)/debian/python-flask-peewee-doc/usr/share/doc/python-flask-peewee-doc/html/_static/underscore.js
	dh_link -ppython-flask-peewee-doc /usr/share/javascript/underscore/underscore.min.js usr/share/doc/python-flask-peewee-doc/html/_static/underscore.js