File: rules

package info (click to toggle)
swauth 1.2.0-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,072 kB
  • sloc: python: 5,629; xml: 119; makefile: 19; sh: 14
file content (27 lines) | stat: -rwxr-xr-x 671 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
27
#!/usr/bin/make -f

include /usr/share/openstack-pkg-tools/pkgos.make

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

override_dh_clean:
	dh_clean
	rm -rf cover

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. nosetests -v test/unit --exe
endif

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. sphinx-build -b html doc/source debian/swauth-doc/usr/share/doc/swauth-doc/html
	dh_sphinxdoc -O--buildsystem=python_distutils
	rm debian/swauth-doc/usr/share/doc/swauth-doc/html/_sources/license.txt
endif

override_dh_installdocs:
	dh_installdocs

	dh_installdocs -A AUTHORS