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 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
PYVERS=$(shell pyversions -vr)
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
| sed -rne 's,^Version: ([^-]+).*,\1,p')
PACKAGE_NAME=python-pywt
MODULE_NAME=PyWavelets
clean:
dh_testdir
dh_testroot
rm -rf build build-stamp build-ext-*
rm -rf $(MODULE_NAME).egg-info
find . -name '*\.py[co]' -delete
rm -f install-stamp install-ext-*
dh_clean
build: build-stamp
build-stamp: $(PYVERS:%=build-ext-%)
touch $@
build-ext-%:
dh_testdir
python$* setupegg.py build
touch $@
install: install-stamp
install-stamp: build-stamp $(PYVERS:%=install-ext-%)
install-ext-%:
python$* setupegg.py install \
--root $(CURDIR)/debian/$(PACKAGE_NAME) \
--single-version-externally-managed
binary-indep:
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs CHANGES.txt
dh_installdocs
dh_installexamples -a
dh_pycentral -a
dh_strip -a
dh_compress -X.py
dh_fixperms
dh_installdeb
dh_shlibdeps -a
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: clean binary-indep binary-arch binary
|