2
include /usr/share/dpatch/dpatch.make
4
p:=debian/python-uniconvertor
5
pd:=debian/python-uniconvertor-dbg
7
PYVERS := $(shell pyversions -vs)
8
PYVER := $(shell pyversions -vd)
10
build: clean patch-stamp build-stamp
11
pod2man --section=1 --release=$(VERSION) debian/uniconvertor.pod > uniconvertor.1
14
build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=dbg-build-python%)
17
python$* setup.py install --no-compile --root $(p)
20
python$*-dbg setup.py install --no-compile --root $(pd)
29
install: build install-python dbg-install-python
32
mv $(p)/usr/bin/uniconv $(p)/usr/bin/uniconvertor
33
chmod 755 `find $(p) -wholename "*/uniconvertor/__init__.py"`
34
find $(p) -type f -name 'GNU_*GPL_v2' | xargs rm -f
35
find $(p) -type f -name 'COPYRIGHTS' | xargs rm -f
38
find $(pd) ! -type d ! -name '*_d.so' | xargs rm -f
39
find $(pd) -depth -empty -exec rmdir {} \;
40
dh_link -ppython-uniconvertor-dbg /usr/share/doc/python-uniconvertor /usr/share/doc/python-uniconvertor-dbg
48
dh_installman uniconvertor.1
51
dh_strip -ppython-uniconvertor --dbg-package=python-uniconvertor-dbg
60
dh_builddeb -a -- -Z bzip2
62
binary: binary-indep binary-arch
64
.PHONY: build clean binary binary-indep binary-arch install