File: rules

package info (click to toggle)
pastewebkit 1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 592 kB
  • ctags: 675
  • sloc: python: 3,346; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 514 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

DOCS=$(shell cd docs && find ./ -name "*.txt" -printf "%p " | sed "s/.txt//g")
docdir=debian/python-pastewebkit/usr/share/doc/python-pastewebkit/docs/

export PYBUILD_NAME=paste
export PYBUILD_DESTDIR_python2=debian/python-pastewebkit/

%:
	dh $@ --with python2 --buildsystem pybuild

override_dh_installdocs:
	dh_installdocs
	mkdir -pv $(docdir)
	set -e ; for NAME in $(DOCS); do \
		rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \
			> "$(docdir)$$NAME.html"; \
	done