author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> |
Fri, 26 Aug 2011 17:14:37 +0200 | |
branch | oldstable |
changeset 7753 | 681ef2a664dd |
parent 5334 | 7da1a6ca8f65 |
child 8098 | e80edd022901 |
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 |
5334
7da1a6ca8f65
[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1667
diff
changeset
|
10 |
NO_SETUPTOOLS=1 python setup.py -q build |
0 | 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 |
|
5334
7da1a6ca8f65
[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1667
diff
changeset
|
26 |
NO_SETUPTOOLS=1 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 |