File: rules

package info (click to toggle)
xpyb 1.3.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 328 kB
  • ctags: 259
  • sloc: ansic: 1,955; python: 477; makefile: 153; sh: 7
file content (38 lines) | stat: -rwxr-xr-x 787 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
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

PYTHON_VERSION=$(shell pyversions -s)

override_dh_auto_configure:
	autoreconf -vfi
	for py in $(PYTHON_VERSION); do \
		mkdir build-$$py; \
		cd build-$$py; \
		../configure PYTHON=$$py --prefix=/usr; \
		cd $(CURDIR); \
	done

override_dh_makeshlibs:

override_dh_auto_build:
	for py in $(PYTHON_VERSION); do \
		make -C build-$$py; \
	done

override_dh_auto_install:
	for py in $(PYTHON_VERSION); do \
		make -C build-$$py DESTDIR=$(CURDIR)/debian/python-xpyb install; \
		rm -rf debian/python-xpyb/usr/lib/$$py/dist-packages/xcb/xcb.la ; \
	done

override_dh_auto_clean:
	for py in $(PYTHON_VERSION); do \
		rm -rf build-$$py; \
	done
	dh_auto_clean

override_dh_install:
	rm -f debian/python-xpyb/usr/share/doc/xpyb/COPYING
	dh_install

%:
	dh --with python2 $@