File: rules

package info (click to toggle)
transmissionrpc 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 568 kB
  • ctags: 305
  • sloc: python: 2,333; makefile: 14; sh: 9
file content (22 lines) | stat: -rwxr-xr-x 628 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
# -*- makefile -*-

export PYBUILD_NAME = transmissionrpc

LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)"

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_install:
	install -m 755 contrib/helical.py debian/python-transmissionrpc/usr/bin/helical

override_dh_installdocs:
	sphinx-build $(SPHINXOPTS) -q doc debian/python-transmissionrpc-doc/usr/share/doc/python-transmissionrpc-doc/html/
	dh_installdocs

override_dh_clean:
	dh_clean
	-rm -rf html