Skip to content
Snippets Groups Projects
rules 1.12 KiB
Newer Older
Nicolas Chauvat's avatar
Nicolas Chauvat committed
#!/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
build: build-stamp
sylvain thenault's avatar
sylvain thenault committed
build-stamp:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
	dh_testdir
	NO_SETUPTOOLS=1 python setup.py -q build
Nicolas Chauvat's avatar
Nicolas Chauvat committed
	touch build-stamp

sylvain thenault's avatar
sylvain thenault committed
clean:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
	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 -i
	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-comment/usr/
	# remove generated .egg-info file
	rm -rf debian/cubicweb-comment/usr/lib/python*
Nicolas Chauvat's avatar
Nicolas Chauvat committed


# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_install -i
	dh_installchangelogs -i
	dh_installexamples -i
	dh_installdocs -i
	dh_installman -i
	dh_link -i
	dh_compress -i -X.py -X.ini -X.xml -Xtest
	dh_fixperms -i
	dh_installdeb -i
sylvain thenault's avatar
sylvain thenault committed
	dh_gencontrol -i
Nicolas Chauvat's avatar
Nicolas Chauvat committed
	dh_md5sums -i
	dh_builddeb -i


# Build architecture-dependent files here.
sylvain thenault's avatar
sylvain thenault committed
binary-arch:
sylvain thenault's avatar
sylvain thenault committed
binary: binary-indep
Nicolas Chauvat's avatar
Nicolas Chauvat committed
.PHONY: build clean binary-arch binary-indep binary