rules 1.15 KB
Newer Older
Nicolas Chauvat's avatar
Nicolas Chauvat committed
1
2
3
4
5
6
#!/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
7
8
9
10
11
build: build-arch build-indep
build-arch:
	# Nothing to do

build-indep: build-stamp
sylvain.thenault@logilab.fr's avatar
1.4    
sylvain.thenault@logilab.fr committed
12
build-stamp:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
13
	dh_testdir
14
	NO_SETUPTOOLS=1 python setup.py -q build
15
	>$@
Nicolas Chauvat's avatar
Nicolas Chauvat committed
16

sylvain.thenault@logilab.fr's avatar
1.4    
sylvain.thenault@logilab.fr committed
17
clean:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
18
	dh_testdir
19
	rm -f build-stamp
Nicolas Chauvat's avatar
Nicolas Chauvat committed
20
	rm -rf build
21
	find . -name "*.pyc" -delete
Nicolas Chauvat's avatar
Nicolas Chauvat committed
22
23
24
25
26
27
28
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -i
29
	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-person/usr/
30
	# remove generated .egg-info file
31
	rm -rf debian/cubicweb-person/usr/lib/python*
Nicolas Chauvat's avatar
Nicolas Chauvat committed
32
33
34
35
36
37
38
39
40
41
42


# 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
43
	dh_pysupport -i /usr/share/cubicweb
Nicolas Chauvat's avatar
Nicolas Chauvat committed
44
45
46
47
	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
1.4    
sylvain.thenault@logilab.fr committed
48
	dh_gencontrol -i
Nicolas Chauvat's avatar
Nicolas Chauvat committed
49
50
51
52
53
	dh_md5sums -i
	dh_builddeb -i


# Build architecture-dependent files here.
sylvain.thenault@logilab.fr's avatar
1.4    
sylvain.thenault@logilab.fr committed
54
binary-arch:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
55

sylvain.thenault@logilab.fr's avatar
1.4    
sylvain.thenault@logilab.fr committed
56
binary: binary-indep
Nicolas Chauvat's avatar
Nicolas Chauvat committed
57
.PHONY: build clean binary-arch binary-indep binary