3 # Uncomment this to turn on verbose mode.
6 PYTHON_VERSION=$(shell /usr/bin/python -V 2>&1 | /usr/bin/perl -le 'print "$$1.$$2" if <> =~m/^Python\s+(\d+)\.(\d+)(\.\d+)*/')
9 build-stamp: apt-p2p.8 apt-p2p.conf.5
13 %.5 %.8: debian/%.sgml
14 /usr/bin/docbook-to-man $< > debian/$@
19 rm -rf build/ apt_p2p/*.pyc apt_p2p_Khashmir/*.pyc *.pyc
32 ./setup.py install --prefix=$(CURDIR)/debian/apt-p2p/usr \
33 --install-lib=$(CURDIR)/debian/apt-p2p/usr/share/python-support/apt-p2p \
34 --install-scripts=$(CURDIR)/debian/apt-p2p/usr/sbin
36 # Remove the generated .pyc files
37 ( cd debian/apt-p2p/usr/share/python-support/apt-p2p/apt_p2p_Khashmir && \
42 # Build architecture-independent files here.
50 # Remove the .py from the end of each of these
51 mv debian/apt-p2p/usr/sbin/apt-p2p.py debian/apt-p2p/usr/sbin/apt-p2p
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install