File: rules

package info (click to toggle)
django-cas-server 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,112 kB
  • sloc: python: 6,036; makefile: 262; xml: 100; javascript: 92; sh: 17
file content (20 lines) | stat: -rwxr-xr-x 617 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

export PYBUILD_NAME=django-cas-server
export PYBUILD_DISABLE=test

%:
	dh $@ --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs/ -d debian/doctrees $(CURDIR)/debian/python3-django-cas-server-doc/usr/share/doc/python3-django-cas-server/html
	PYTHONPATH=. python3 -m sphinx -b man -N docs/ -d debian/doctrees $(CURDIR)/debian/python3-django-cas-server-doc/usr/share/doc/python3-django-cas-server/man
	dh_sphinxdoc
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf debian/doctrees