File: rules

package info (click to toggle)
python-pygit2 1.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,728 kB
  • sloc: ansic: 12,506; python: 8,410; sh: 196; makefile: 26
file content (16 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=pygit2
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=pybuild

html_doc_dir = $(CURDIR)/debian/python-pygit2-doc/usr/share/doc/python-pygit2-doc
execute_after_dh_auto_install:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	$(MAKE) -C docs html \
		BUILDDIR="$(html_doc_dir)" \
		PYTHONPATH="$(shell pybuild --print {build_dir} --interpreter=python3)"
	rm -rf $(html_doc_dir)/doctrees
endif