File: rules

package info (click to toggle)
dm-tree 0.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: python: 1,472; cpp: 614; makefile: 17; sh: 5
file content (12 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=dm-tree

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

execute_before_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	cd $$(pybuild --print build_dir --name dm-tree |head -n1 |awk -F ': ' '{print $$2}'); python3 -m sphinx -b html -N $(CURDIR)/docs $(CURDIR)/debian/python-dm-tree-doc/usr/share/doc/python-dm-tree-doc/html
endif