File: rules

package info (click to toggle)
click-man 0.4.2-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 358; makefile: 18; sh: 4
file content (22 lines) | stat: -rwxr-xr-x 636 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
#! /usr/bin/make -f

# For reproducible builds
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

export PYBUILD_NAME=click-man

%:
	dh $@ --buildsystem=pybuild

# Move the command line interfaces to their own package.
override_dh_install:
	mkdir -p debian/click-man/usr/bin
	mv debian/python3-click-man/usr/bin/* debian/click-man/usr/bin

# Use it on itself.
# It normally includes a datestamp, so we replace that.
override_dh_installman:
	python3 setup.py --command-packages=click_man.commands man_pages --target debian/tmp/manpages
	sed -i 's/^[.]TH.*/.TH CLICK-MAN 1/' debian/tmp/manpages/click-man.1
	dh_installman -O--buildsystem=pybuild