File: rules

package info (click to toggle)
click-man 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 188 kB
  • sloc: python: 251; makefile: 13; sh: 4
file content (23 lines) | stat: -rwxr-xr-x 678 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
#! /usr/bin/make -f

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

export PYBUILD_NAME=click-man
export PYBUILD_TEST_NOSE=1

%:
	dh $@ --with python3 --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