File: rules

package info (click to toggle)
pystemmer 2.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,356 kB
  • sloc: python: 274; sh: 26; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 589 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
#!/usr/bin/make -f

export PYBUILD_NAME=stemmer

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

override_dh_auto_build:
	# Rebuild from Cython source
	rm -f src/*.c
	dh_auto_build

override_dh_auto_test:
	dh_auto_test -- --test-args="-s tests"
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} runtests.py" \
		dh_auto_test

override_dh_strip:
	dh_strip -p python3-stemmer -p python3-stemmer-dbg --dbg-package=python3-stemmer-dbg

override_dh_installdocs:
	dh_installdocs -p python3-stemmer -p python3-stemmer-dbg --link-doc=python3-stemmer
	dh_installdocs --remaining-packages