File: rules

package info (click to toggle)
keybinder 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,884 kB
  • ctags: 297
  • sloc: sh: 11,397; ansic: 602; makefile: 160; python: 10
file content (30 lines) | stat: -rwxr-xr-x 840 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
25
26
27
28
29
30
#!/usr/bin/make -f

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

%:
	dh $@ --with python2,autoreconf,gir

clean:
	rm -fr build keybinder/*.pyc
	dh $@ --with python2,autoreconf

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; CC="cc -Wl,--as-needed" ./configure --prefix=/usr --enable-gtk-doc 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
	find $(CURDIR)/debian/tmp -name "*.la" -delete

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