File: rules

package info (click to toggle)
peewee 3.14.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 3,192 kB
  • sloc: python: 33,247; makefile: 126; ansic: 109; sh: 10
file content (27 lines) | stat: -rwxr-xr-x 864 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
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

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

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

override_dh_install:
	dh_install
	mkdir -p debian/peewee/usr/bin/
	mv debian/python3-peewee/usr/bin/pwiz.py \
	   debian/peewee/usr/bin/pwiz

override_dh_installman:
	mkdir -p debian/peewee/usr/share/man/man1/
	PYTHONPATH=. help2man --version-string $(DEB_VERSION_UPSTREAM) \
                --no-info \
                --name "peewee model generator" \
                debian/peewee/usr/bin/pwiz > \
                debian/peewee/usr/share/man/man1/pwiz.1
	cp docs/build/man/peewee.1 debian/peewee/usr/share/man/man1/