rules 1.05 KB
Newer Older
1
2
3
4
5
6
7
#!/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@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
8
build-stamp:
9
10
11
12
	dh_testdir
	python setup.py -q build
	touch build-stamp

sylvain.thenault@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
13
clean:
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	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
	python setup.py -q install --no-compile --prefix=debian/cubicweb-basket/usr/
sylvain.thenault@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
28
	rm -rf debian/cubicweb-basket/usr/lib/python*
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43


# 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@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
44
	dh_gencontrol -i
45
46
47
48
49
	dh_md5sums -i
	dh_builddeb -i


# Build architecture-dependent files here.
sylvain.thenault@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
50
binary-arch:
51

sylvain.thenault@logilab.fr's avatar
sylvain.thenault@logilab.fr committed
52
binary: binary-indep
53
.PHONY: build clean binary-arch binary-indep binary