mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 09:48:56 +00:00
63 lines
1.1 KiB
Makefile
63 lines
1.1 KiB
Makefile
#!/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
|
|
|
|
PREFIX=$(shell pwd)/debian/allmydata-tahoe/usr
|
|
|
|
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
|
|
|
|
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)
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
binary-indep: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installdocs -i
|
|
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
|
|
|
|
|
|
|