11632
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
1 |
#!/usr/bin/make -f
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
2 |
# Sample debian/rules that uses debhelper.
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
3 |
# GNU copyright 1997 to 1999 by Joey Hess.
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
4 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
5 |
# Uncomment this to turn on verbose mode.
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
6 |
#export DH_VERBOSE=1
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
7 |
build: build-arch build-indep
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
8 |
build-arch:
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
9 |
# Nothing to do
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
10 |
build-indep: build-stamp
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
11 |
build-stamp:
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
12 |
dh_testdir
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
13 |
NO_SETUPTOOLS=1 python setup.py -q build
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
14 |
touch build-stamp
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
15 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
16 |
clean:
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
17 |
dh_testdir
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
18 |
rm -f build-stamp configure-stamp
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
19 |
rm -rf build
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
20 |
find . -name "*.pyc" -delete
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
21 |
dh_clean
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
22 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
23 |
install: build
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
24 |
dh_testdir
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
25 |
dh_testroot
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
26 |
dh_clean -k
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
27 |
dh_installdirs -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
28 |
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-pyramid/usr/
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
29 |
# remove generated .egg-info file
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
30 |
rm -rf debian/cubicweb-pyramid/usr/lib/python*
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
31 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
32 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
33 |
# Build architecture-independent files here.
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
34 |
binary-indep: build install
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
35 |
dh_testdir
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
36 |
dh_testroot
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
37 |
dh_install -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
38 |
dh_installchangelogs -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
39 |
dh_installexamples -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
40 |
dh_installdocs -i README
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
41 |
dh_installman -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
42 |
dh_pysupport -i /usr/share/cubicweb
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
43 |
dh_link -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
44 |
dh_compress -i -X.py -X.ini -X.xml -Xtest
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
45 |
dh_fixperms -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
46 |
dh_installdeb -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
47 |
dh_gencontrol -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
48 |
dh_md5sums -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
49 |
dh_builddeb -i
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
50 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
51 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
52 |
# Build architecture-dependent files here.
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
53 |
binary-arch:
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
54 |
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
55 |
binary: binary-indep
|
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
56 |
.PHONY: build clean binary-arch binary-indep binary
|