File: rules

package info (click to toggle)
netifaces 0.10.4-0.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 332 kB
  • ctags: 109
  • sloc: ansic: 2,124; python: 434; makefile: 27
file content (41 lines) | stat: -rwxr-xr-x 1,146 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
39
40
41
#!/usr/bin/make -f


PYVERS = $(shell pyversions -vr)
PYVERSION = $(shell pyversions -vd)
PY3VERS = $(shell py3versions -vr)


%:
	dh $@ --with=python2,python3

override_dh_auto_clean:
	rm -rf $(CURDIR)/build
	dh_auto_clean

override_dh_auto_build:
	set -ex && for pyvers in $(PYVERS) $(PY3VERS); do \
		python$$pyvers setup.py build; \
		python$$pyvers-dbg setup.py build; \
	done

override_dh_auto_install:
	set -ex && for pyvers in $(PYVERS) $(PY3VERS); do \
		python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \
		python$$pyvers-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \
	done

override_dh_installdocs:
	dh_installdocs
	rm -rf debian/python-netifaces-dbg/usr/share/doc/python-netifaces-dbg
	ln -s python-netifaces debian/python-netifaces-dbg/usr/share/doc/python-netifaces-dbg

	rm -rf debian/python3-netifaces-dbg/usr/share/doc/python3-netifaces-dbg
	ln -s python3-netifaces debian/python3-netifaces-dbg/usr/share/doc/python3-netifaces-dbg


override_dh_strip:
	dh_strip -X"python3" --dbg-package=python-netifaces-dbg
	dh_strip -X"python2" --dbg-package=python3-netifaces-dbg