File: rules

package info (click to toggle)
snowball 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: ansic: 15,641; ada: 849; python: 531; cs: 485; pascal: 473; java: 473; javascript: 411; perl: 312; sh: 40; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 796 bytes parent folder | download | duplicates (2)
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

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- snowball
	dh_auto_build -- $(shell dpkg-buildflags --export=configure)
ifneq (,$(filter python3-snowballstemmer,$(shell dh_listpackages)))
	$(MAKE) dist_libstemmer_python
	dh_auto_build --buildsystem=pybuild -- --dir dist/snowballstemmer-$(DEB_VERSION_UPSTREAM) --name snowballstemmer
endif

override_dh_auto_install-indep:
	dh_auto_install --buildsystem=pybuild -- --dir dist/snowballstemmer-$(DEB_VERSION_UPSTREAM) --name snowballstemmer

override_dh_auto_test:
	STEMMING_DATA=/usr/share/snowball/data dh_auto_test --no-parallel

override_dh_installdocs-arch:
	dh_installdocs --link-doc=libstemmer0d