File: rules

package info (click to toggle)
pyhunspell 0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 196 kB
  • ctags: 77
  • sloc: ansic: 657; python: 28; makefile: 15
file content (26 lines) | stat: -rwxr-xr-x 599 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

PYTHON_VERSIONS=$(shell pyversions -vr; py3versions -vr)

%:
	dh $@ --with python2,python3

build-python%:
	python$* setup.py build

test-python%:
	cd build/lib.*-$* && python$* -c "import hunspell"

install-python%:
	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb

clean-python%:
	python$* setup.py clean -a

override_dh_auto_build: $(PYTHON_VERSIONS:%=build-python%)

override_dh_auto_test: $(PYTHON_VERSIONS:%=test-python%)

override_dh_auto_install: $(PYTHON_VERSIONS:%=install-python%)

override_dh_auto_clean: $(PYTHON_VERSIONS:%=clean-python%)