python: Rename bindings.
[gpgme.git] / lang / python / debian / rules
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
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=4
10
11
12 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
13         CFLAGS += -g
14 endif
15 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
16         INSTALL_PROGRAM += -s
17 endif
18
19 configure: configure-stamp
20 configure-stamp:
21         dh_testdir
22         # Add here commands to configure the package.
23
24         touch configure-stamp
25
26
27 build: build-stamp
28
29 build-stamp: configure-stamp 
30         dh_testdir
31
32         # Add here commands to compile the package.
33         $(MAKE) swig
34         python2.4 setup.py build -b `pwd`/build
35         python2.5 setup.py build -b `pwd`/build
36         $(MAKE) PYSRCURL=file:/usr/share/pyshared/\\1 docs
37         touch build-stamp
38
39 clean:
40         dh_testdir
41         dh_testroot
42         rm -f build-stamp configure-stamp
43
44         # Add here commands to clean up after the build process.
45         -$(MAKE) reallyclean
46
47         dh_clean
48
49 install: build
50         dh_testdir
51         dh_testroot
52         dh_clean -k
53         dh_installdirs
54
55         # Add here commands to install the package into debian/pyme.
56         python2.4 setup.py install --root=`pwd`/debian/python-pyme
57         python2.5 setup.py install --root=`pwd`/debian/python-pyme
58
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62         dh_testdir
63         dh_testroot
64         dh_installdocs -i -XCVS
65         dh_installexamples -i -XCVS
66         dh_installmenu -i
67         dh_installchangelogs -i
68         dh_link -i
69         dh_strip -i
70         dh_compress -i
71         dh_fixperms -i
72         dh_pycentral -i
73         dh_installdeb -i
74         dh_shlibdeps -i
75         dh_gencontrol -i
76         dh_md5sums -i
77         dh_builddeb -i
78
79 # Build architecture-dependent files here.
80 binary-arch: build install
81         dh_testdir
82         dh_testroot
83         dh_installdocs -a -XCVS
84         dh_installexamples -a -XCVS
85         dh_installmenu -a
86         dh_installchangelogs -a
87         dh_link -a
88         dh_strip -a
89         dh_compress -a
90         dh_fixperms -a
91         dh_pycentral -a
92         dh_installdeb -a
93         dh_shlibdeps -a
94         dh_gencontrol -a
95         dh_md5sums -a
96         dh_builddeb -a
97
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install configure