File: rules

package info (click to toggle)
python-pegen 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,980 kB
  • sloc: python: 15,064; makefile: 89
file content (20 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=pegen
export PYBUILD_TEST_PYTEST=1

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

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	http_proxy='http://127.0.0.1:9/' PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ debian/python-pegen-doc/usr/share/doc/python-pegen-doc/html/
	dh_sphinxdoc
endif

override_dh_link:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	jdupes -rl debian/python-pegen-doc/usr/share/doc/python-pegen-doc/html/
endif
	dh_link