File: rules

package info (click to toggle)
py-stringmatching 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,956 kB
  • sloc: python: 3,979; makefile: 174; sh: 7
file content (26 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

export PYBUILD_NAME=py-stringmatching

VERSIONEDPYTHON=$(shell py3versions -d)

ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
%:
	dh $@ --with python3,numpy3,sphinxdoc --buildsystem=pybuild

execute_after_dh_auto_build:
	PYTHONPATH=$(CURDIR)/test-install $(VERSIONEDPYTHON) setup.py develop --install-dir=test-install
	PYTHONPATH=$(CURDIR)/test-install $(MAKE) -C docs html

execute_after_dh_auto_clean:
	$(MAKE) -C docs clean
	rm -rf test-install

override_dh_installdocs:
	dh_installdocs -ppython-py-stringmatching-doc --doc-main-package=python3-py-stringmatching
	dh_installdocs --remaining-packages

else
%:
	dh $@ --with python3,numpy3 --buildsystem=pybuild
endif