File: rules

package info (click to toggle)
lift 2.6.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 1,111; sh: 6; makefile: 5
file content (13 lines) | stat: -rwxr-xr-x 423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

# Build man pages
export PYBUILD_AFTER_BUILD=rst2man doc/lift.rst doc/lift.1 && rst2man doc/lift.yaml.rst doc/lift.yaml.1

# Install man pages
export PYBUILD_AFTER_INSTALL=mkdir -p {destdir}/usr/share/man/man1 && cp doc/*.1 {destdir}/usr/share/man/man1/

# Remove leftovers from tests and man pages
export PYBUILD_AFTER_CLEAN=rm -rf lift.egg-info doc/*.1

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