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 56 57 58 59 60 61 62 63
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ORIGFILES = PyRRD.egg-info/SOURCES.txt
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build: build-stamp
build-stamp:
dh_testdir
for f in $(ORIGFILES) ; do [ -e $$f.d-r-orig ] || cp -p $$f $$f.d-r-orig ; done
python setup.py build
touch $@
clean:
dh_testdir
dh_testroot
[ ! -d build ] || rm -rf build
python setup.py clean
for f in $(ORIGFILES) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done
dh_clean ez_setup.pyc build-stamp
rm pyrrd/*.pyc
rm pyrrd/util/*.pyc
rm CHECK_THIS_BEFORE_UPLOAD.txt
install: build
dh_testdir
dh_testroot
dh_clean -k
python setup.py install --single-version-externally-managed --root=$(CURDIR)/debian/python-pyrrd
- PYTHONPATH=build/lib/ python test/test_all.py
# Build architecture-dependent files here.
binary-arch: build install
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs docs/HISTORY.txt
dh_installdocs README docs/*
dh_installexamples examples/* -Xpng
dh_python2
dh_compress -X.py
dh_fixperms
dh_gencontrol
dh_installdeb
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|