3
# Made with the aid of dh_make, by Craig Small
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5
# Some lines taken from debmake, by Christoph Lameter.
7
4
# Uncomment this to turn on verbose mode.
10
include /usr/share/quilt/quilt.make
12
PYVERS:=$(shell pyversions -r)
13
PY3VERS:=$(shell py3versions -r)
19
for py in $(PYVERS) $(PY3VERS); do \
20
$$py setup.py build; \
29
-for py in $(PYVERS) $(PY3VERS); do \
30
$$py setup.py clean; \
32
rm -f install-stamp build-stamp
33
find Xlib -name \*.pyc | xargs rm -f
7
export PYBUILD_NAME=xlib
10
dh $@ --with python2,python3 --buildsystem=pybuild
12
override_dh_auto_build:
16
override_dh_auto_clean:
37
install: install-stamp
44
for py in $(PYVERS); do \
45
$$py setup.py install --root=debian/python-xlib; \
47
for py in $(PY3VERS); do \
48
$$py setup.py install --root=debian/python3-xlib; \
51
dh_installexamples -A examples/*.py
20
override_dh_installdocs:
22
rm debian/*/usr/share/doc/*/*/Makefile debian/*/usr/share/doc/*/*/texi2html
24
override_dh_installexamples:
52
26
# adjust python3 examples hashbang
53
27
sed -i '1 s/python$$/python3/' debian/python3-xlib/usr/share/doc/*/examples/*.py
54
dh_installinfo doc/info/*.info
58
binary-arch: build install
59
# We have nothing to do by default.
61
binary-indep: build install
64
dh_installchangelogs NEWS
28
# set all examples executable
29
chmod +x debian/python*-xlib/usr/share/doc/*/examples/*.py
74
binary: binary-indep binary-arch
75
.PHONY: build clean binary-indep binary-arch binary install
34
.PHONY: override_dh_auto_build override_dh_auto_clean override_dh_installexamples override_dh_compress