File: rules

package info (click to toggle)
lazr.config 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 316 kB
  • ctags: 188
  • sloc: python: 859; makefile: 10
file content (25 lines) | stat: -rwxr-xr-x 889 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
#!/usr/bin/make -f

export PYBUILD_NAME=lazr.config
export PYBUILD_TEST_NOSE=1
#export DH_VERBOSE=1

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

override_dh_installdocs:
	python setup.py build_sphinx
	dh_installdocs

# 2015-06-05 barry@debian.org.  It's not clear to me why we have to find and
# nuke the (several) .pybuild directories from the python-lazr.config-doc
# package.  I would have expected pybuild and/or dh_sphinxdoc or some other
# infrastructure to prevent those from leaking into the package.  Or I'd have
# expected `dh_sphinxdoc -X.pybuild` to do the trick.  None of that worked for
# me (the latter caused a FTBFS).  When there's time it would be worth
# tracking down, but in the meantime, this is the most expedient way to fix
# bug #786516.

override_dh_sphinxdoc:
	dh_sphinxdoc
	find debian/python-lazr.config-doc -name .pybuild | xargs rm -rf