File: rules

package info (click to toggle)
python-discovery 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 492 kB
  • sloc: python: 4,511; makefile: 9; sh: 8
file content (13 lines) | stat: -rwxr-xr-x 367 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/make -f

export PYBUILD_NAME=discovery

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

execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(shell pybuild --print build_dir -i python3) \
	    python3 -m sphinx -b html -d build/doctrees docs build/html
	ln -s /usr/share/javascript/d3/d3.min.js build/html/_static/
endif