~ubuntu-branches/ubuntu/vivid/python-biggles/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Peter Hawkins
  • Date: 2004-07-10 11:51:29 UTC
  • Revision ID: james.westby@ubuntu.com-20040710115129-cje9vlzc68vzcliz
Tags: 1.6.4-1
* New upstream release.
* Acknowledged NMU.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper. 
 
3
# GNU copyright 1997 by Joey Hess.
 
4
#
 
5
# This version is for a hypothetical package that builds an
 
6
# architecture-dependant package, as well as an architecture-independent
 
7
# package.
 
8
 
 
9
# Uncomment this to turn on verbose mode. 
 
10
#export DH_VERBOSE=1
 
11
 
 
12
# This is the debhelper compatibility version to use.
 
13
export DH_COMPAT=3
 
14
 
 
15
 
 
16
 
 
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -g
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
        INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
build: build-stamp
 
25
build-stamp:
 
26
        dh_testdir
 
27
 
 
28
        /usr/bin/python2.2 setup.py build --build-lib build2.2
 
29
        /usr/bin/python2.3 setup.py build --build-lib build2.3
 
30
 
 
31
        touch build-stamp
 
32
 
 
33
clean:
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        rm -f build-arch-stamp build-indep-stamp configure-stamp
 
37
 
 
38
        # Add here commands to clean up after the build process.
 
39
        /usr/bin/python2.2 setup.py clean --all --build-lib build2.2
 
40
        /usr/bin/python2.3 setup.py clean --all --build-lib build2.3
 
41
        -rm -fr build
 
42
 
 
43
        dh_clean
 
44
 
 
45
install: DH_OPTIONS=
 
46
install: build
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_clean -k
 
50
        dh_installdirs
 
51
 
 
52
        # Add here commands to install the package into debian/python-biggles.
 
53
        /usr/bin/python2.2 setup.py install --prefix=`pwd`/debian/python2.2-biggles/usr --no-compile
 
54
        /usr/bin/python2.3 setup.py install --prefix=`pwd`/debian/python2.3-biggles/usr --no-compile
 
55
 
 
56
#       dh_movefiles
 
57
 
 
58
# Build architecture-dependent files here.
 
59
binary-arch: build install
 
60
        dh_testdir -a
 
61
        dh_testroot -a
 
62
        dh_installdocs -a -A
 
63
        dh_installexamples -A -a examples/*
 
64
        dh_installchangelogs -a ChangeLog
 
65
        dh_strip -a
 
66
        dh_link -a
 
67
        dh_compress -a
 
68
        dh_fixperms -a
 
69
        dh_python -a
 
70
        dh_installdeb -a
 
71
        dh_shlibdeps -a
 
72
        dh_gencontrol -a
 
73
        dh_md5sums -a
 
74
        dh_builddeb -a
 
75
 
 
76
# Build architecture-independent files here.
 
77
binary-indep: build install
 
78
        dh_testdir -i
 
79
        dh_testroot -i
 
80
        dh_installdocs -i -A
 
81
        dh_installchangelogs -i ChangeLog
 
82
        dh_link -i
 
83
        dh_compress -i
 
84
        dh_fixperms -i
 
85
        dh_python -i
 
86
        dh_installdeb -i
 
87
        dh_shlibdeps -i
 
88
        dh_gencontrol -i
 
89
        dh_md5sums -i
 
90
        dh_builddeb -i
 
91
 
 
92
binary: binary-arch binary-indep
 
93
.PHONY: clean binary binary-arch binary-indep install build