2006-12-05 09:00:44 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatability version to use.
|
|
|
|
export DH_COMPAT=4
|
|
|
|
|
2007-03-29 19:07:24 +00:00
|
|
|
PREFIX=$(shell pwd)/debian/allmydata-tahoe/usr
|
|
|
|
|
2006-12-05 09:00:44 +00:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
## Build for all python versions
|
|
|
|
python2.4 setup.py build
|
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
|
|
|
rm -rf build
|
|
|
|
find . -name '*.pyc' |xargs -r rm
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2007-03-29 19:07:24 +00:00
|
|
|
cd src/pyfec && python2.4 setup.py install --prefix=$(PREFIX)
|
|
|
|
cd src/Crypto && python2.4 setup.py install --prefix=$(PREFIX)
|
|
|
|
python2.4 setup.py install --prefix=$(PREFIX)
|
2006-12-05 09:00:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2007-04-07 03:51:32 +00:00
|
|
|
dh_installdocs -i
|
2006-12-05 09:00:44 +00:00
|
|
|
dh_installchangelogs -i
|
|
|
|
dh_compress -i -X.py
|
|
|
|
dh_fixperms
|
|
|
|
dh_python
|
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary-arch:
|
|
|
|
# nothing to do
|
|
|
|
|
|
|
|
binary: binary-indep
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|
|
|
|
|
|
|
|
|
|
|
|
|