File: rules

package info (click to toggle)
pythonmagick 0.9.11-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,540 kB
  • ctags: 606
  • sloc: sh: 11,533; cpp: 2,609; perl: 279; python: 175; makefile: 129
file content (29 lines) | stat: -rwxr-xr-x 769 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
27
28
29
#!/usr/bin/make -f

PYVERSIONS = $(shell pyversions -vr)

%:
	dh $@ --with python2 --with autoreconf --parallel

override_dh_auto_clean:
	set -e && for pyver in $(PYVERSIONS); do \
		PYTHON=python$$pyver dh_auto_clean -Bbuild/py$$pyver; \
	done

override_dh_auto_configure:
	set -e && for pyver in $(PYVERSIONS); do \
		mkdir -p build/py$$pyver; \
		PYTHON=python$$pyver dh_auto_configure -Bbuild/py$$pyver -- \
			--disable-silent-rules --disable-static; \
	done

override_dh_auto_build:
	set -e && for pyver in $(PYVERSIONS); do \
		PYTHON=python$$pyver dh_auto_build -Bbuild/py$$pyver; \
	done

override_dh_auto_install:
	set -e && for pyver in $(PYVERSIONS); do \
		PYTHON=python$$pyver dh_auto_install -Bbuild/py$$pyver; \
	done
	find debian/ -name "*.la" -delete