debian/rules
author Sylvain <syt@logilab.fr>
Mon, 14 Jan 2008 15:19:31 +0100
changeset 164 95b1b9c0d6ad
parent 21 72a393d5ce60
child 396 23162ef3b965
permissions -rwxr-xr-x
debian packaging fixes

#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# adapted by Logilab for automatic generation by debianize
# (part of the devtools project, http://www.logilab.org/projects/devtools)
#
# Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp: 
	dh_testdir
	python setup.py -q build
	touch build-stamp

clean: 
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	rm -rf build
	find . -name "*.pyc" | xargs rm -f
	rm -f changelog.gz
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	python setup.py -q install --no-compile --prefix=debian/python-rql/usr/ --install-headers=debian/python-rql/usr/include/ --install-scripts=debian/python-rql/usr/bin
	# remove test directory (installed in in the doc directory)
	rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
	# install tests
	(cd test && find . -type f -not \( -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/python-rql/usr/share/doc/python-rql/test/{} \;)

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir 
	dh_testroot 
	dh_install -i
	dh_pycentral -i 
	dh_python -i
	gzip -9 -c ChangeLog > changelog.gz
	dh_installchangelogs -i
	dh_installexamples -i
	dh_installdocs -i README TODO changelog.gz
	dh_installman -i
	dh_link -i
	dh_compress -i -X.py -X.ini -X.xml -Xtest
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i 
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch:

binary: binary-indep binary-arch
.PHONY: build clean binary binary-indep binary-arch