File: rules

package info (click to toggle)
peewee 3.17.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,444 kB
  • sloc: python: 36,713; makefile: 132; ansic: 109; sh: 17
file content (36 lines) | stat: -rwxr-xr-x 1,040 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
34
35
36
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=peewee

DPKG_EXPORT_BUILDFLAGS = 1

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

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

override_dh_clean:
	dh_clean
	rm -rf .mypy_cache docs/build

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/