File: rules

package info (click to toggle)
dodgy 0.1.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: python: 200; makefile: 11; sh: 2
file content (18 lines) | stat: -rwxr-xr-x 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=dodgy

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

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

override_dh_installdocs:
	pandoc -t plain -o .pybuild/README README.md
	dh_installdocs .pybuild/README

override_dh_installman:
	txt2man -s 1 -v "dodgy" -t "dodgy" -r "$(VERSION)" -d "$(DEBDATE)" debian/dodgy.txt > .pybuild/dodgy.1
	dh_installman .pybuild/dodgy.1