author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Mon, 24 Aug 2009 20:01:05 +0200 | |
branch | 3.5 |
changeset 2970 | d83f5d96e1d7 |
parent 1667 | 145af5f29f12 |
child 5334 | 7da1a6ca8f65 |
permissions | -rwxr-xr-x |
0 | 1 |
#!/usr/bin/make -f |
2 |
# Sample debian/rules that uses debhelper. |
|
3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
|
4 |
||
5 |
# Uncomment this to turn on verbose mode. |
|
6 |
#export DH_VERBOSE=1 |
|
7 |
build: build-stamp |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
8 |
build-stamp: |
0 | 9 |
dh_testdir |
10 |
python setup.py -q build |
|
11 |
touch build-stamp |
|
12 |
||
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
13 |
clean: |
0 | 14 |
dh_testdir |
15 |
dh_testroot |
|
16 |
rm -f build-stamp configure-stamp |
|
17 |
rm -rf build |
|
18 |
find . -name "*.pyc" | xargs rm -f |
|
19 |
dh_clean |
|
20 |
||
21 |
install: build |
|
22 |
dh_testdir |
|
23 |
dh_testroot |
|
24 |
dh_clean -k |
|
25 |
dh_installdirs -i |
|
26 |
python setup.py -q install --no-compile --prefix=debian/%(distname)s/usr/ |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
27 |
# remove generated .egg-info file |
1667 | 28 |
rm -rf debian/%(distname)s/usr/lib/python* |
0 | 29 |
|
30 |
||
31 |
# Build architecture-independent files here. |
|
32 |
binary-indep: build install |
|
33 |
dh_testdir |
|
34 |
dh_testroot |
|
35 |
dh_install -i |
|
36 |
dh_installchangelogs -i |
|
37 |
dh_installexamples -i |
|
38 |
dh_installdocs -i |
|
39 |
dh_installman -i |
|
40 |
dh_link -i |
|
41 |
dh_compress -i -X.py -X.ini -X.xml -Xtest |
|
42 |
dh_fixperms -i |
|
43 |
dh_installdeb -i |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
44 |
dh_gencontrol -i |
0 | 45 |
dh_md5sums -i |
46 |
dh_builddeb -i |
|
47 |
||
48 |
||
49 |
# Build architecture-dependent files here. |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
50 |
binary-arch: |
0 | 51 |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
52 |
binary: binary-indep |
0 | 53 |
.PHONY: build clean binary-arch binary-indep binary |