File: rules

package info (click to toggle)
keybinder 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,488 kB
  • ctags: 158
  • sloc: sh: 10,224; ansic: 520; makefile: 105; python: 10
file content (29 lines) | stat: -rwxr-xr-x 743 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

PYTHONS := $(shell pyversions -vr debian/control)

%:
	dh $@

clean:
	rm -fr build keybinder/*.pyc
	dh $@

override_dh_auto_configure:
	for pyvers in ${PYTHONS}; do \
		mkdir -p build/py$$pyvers; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers;\
		(cd build/py$$pyvers; autoreconf -fi -I m4 && CC="cc -Wl,--as-needed" ./configure --prefix=/usr PYTHON=python$$pyvers); \
	done

override_dh_auto_build:
	for pyvers in ${PYTHONS}; do \
		(cd build/py$$pyvers/; $(MAKE) PYTHON=python$$pyvers); \
	done

override_dh_auto_install:
	for pyvers in ${PYTHONS}; do \
		(cd build/py$$pyvers/; $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp); \
	done

override_dh_makeshlibs:
	dh_makeshlibs -V 'libkeybinder0 (>= 0.2.1)'