File: rules

package info (click to toggle)
python-duniterpy 0.62.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,156 kB
  • sloc: python: 10,927; makefile: 195; sh: 33
file content (14 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

# handle setup.py file provided in patch
export PYBUILD_SYSTEM = distutils
export PYBUILD_CLEAN_ARGS = $(if $(wildcard setup.py),,|| true)

# build documentation unless nodoc requested
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	sphinx-build -b html docs debian/doc/html
endif

%:
	dh $@ --buildsystem=pybuild