3
# Uncomment this to turn on verbose mode.
6
PYVERS := $(shell pyversions -vr)
7
PYVER := $(shell python -c 'import sys; print sys.version[:3]')
10
build-stamp: $(PYVERS:%=build-stamp-python%)
13
python$* setup.py build
21
find -name '*.py[co]' -exec rm -f {} \;
24
install: build install-prereq $(PYVERS:%=install-python%)
28
: # Replace all '#!' calls to python with /usr/bin/python
29
: # and make them executable
30
for i in `find debian -mindepth 3 -type f`; do \
31
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
33
if cmp --quiet $$i $$i.temp; then \
38
echo "fixed interpreter: $$i"; \
48
python$* setup.py install --root $(CURDIR)/debian/python-odfpy
50
# Build architecture-independent files here.
51
# Pass -i to all debhelper commands in this target to reduce clutter.
52
binary-indep: build install
55
# dh_installdebconf -i
62
# dh_installchangelogs -i CHANGES
75
.PHONY: build clean binary-indep binary-arch binary install