File: rules

package info (click to toggle)
rtslib 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 320 kB
  • sloc: python: 3,470; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 695 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
23
24
25
26
27
28
29
#!/usr/bin/make -f

build_dir   = build
install_dir = debian/tmp


%:
	dh $@ --with python2

override_dh_auto_clean:
	# manually clean any *.pyc files
	rm -rf rtslib/*.pyc
	[ ! -d doc ] || rm -rf doc

override_dh_auto_build:
	python setup.py build --build-base $(build_dir)
	test -d doc || mkdir doc

	mkdir -p doc/pdf
	epydoc --no-sourcecode --pdf -n rtslib --exclude configobj rtslib/*.py
	mv pdf/api.pdf doc/pdf/rtslib_API_Documentation.pdf
	
	mkdir -p doc/html
	epydoc --no-sourcecode --html -n rtslib --exclude configobj rtslib/*.py
	mv html doc/

override_dh_auto_install:
	python setup.py install --no-compile --install-purelib \
		$(install_dir)/lib --install-scripts $(install_dir)/bin