File: rules

package info (click to toggle)
txtorcon 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,148 kB
  • ctags: 1,531
  • sloc: python: 10,403; makefile: 211
file content (26 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

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

override_dh_installdocs:
	cd docs && make text
	dh_installdocs -O--buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install -O--buildsystem=pybuild
	mkdir -p debian/python-txtorcon/usr/share/doc/python-txtorcon
	set -e && \
	for data_src in README.rst TODO examples; do \
		mv debian/python-txtorcon/usr/share/txtorcon/$$data_src \
			debian/python-txtorcon/usr/share/doc/python-txtorcon; \
	done
	rm -r debian/python-txtorcon/usr/share/txtorcon

override_dh_compress:
	dh_compress -Xlaunch_tor_with_simplehttpd.py -O--buildsystem=pybuild

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	make test
endif