File: rules

package info (click to toggle)
xdoctest 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: python: 10,747; sh: 815; cpp: 33; makefile: 19
file content (15 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
export PYBUILD_NAME=xdoctest

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_install:
	rm -rf $(CURDIR)/debian/python3-xdoctest/usr/bin/

execute_before_dh_installman:
	txt2man -s 1 -v "xdoctest" -t "xdoctest" \
	-r "$(VERSION)" -d "$(DEBDATE)" debian/manpage/xdoctest.txt > debian/manpage/xdoctest.1