~ubuntu-branches/ubuntu/oneiric/pywebkitgtk/oneiric-201108311558

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2008-08-25 23:31:56 UTC
  • Revision ID: james.westby@ubuntu.com-20080825233156-qbi4aanmdg4pi81x
Tags: 1.0.1-0ubuntu1
Initial release (LP: #261279)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
PYVERS=$(shell pyversions -vr)
 
4
 
 
5
build-%/configure-stamp:
 
6
        dh_testdir
 
7
        mkdir -p build-$*
 
8
        cd build-$* && PYTHON=/usr/bin/python$* $(CURDIR)/configure \
 
9
                --prefix=/usr --mandir=\$${prefix}/share/man
 
10
        touch $@
 
11
 
 
12
build: $(PYVERS:%=build-%/build-stamp)
 
13
build-%/build-stamp: build-%/configure-stamp
 
14
        dh_testdir
 
15
        $(MAKE) -C build-$*
 
16
        touch $@
 
17
 
 
18
clean:
 
19
        dh_testdir
 
20
        dh_testroot
 
21
        rm -f build-stamp configure-stamp
 
22
 
 
23
        # Add here commands to clean up after the build process.
 
24
        [ ! -f Makefile ] || $(MAKE) distclean
 
25
        rm -Rf build-* 
 
26
        dh_clean
 
27
 
 
28
install: build install-clean $(PYVERS:%=install-arch-%) $(PYVERS:%=install-indep-%)
 
29
 
 
30
install-clean:
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        dh_clean -k
 
34
 
 
35
install-arch-%:
 
36
        $(MAKE) -C build-$*  install DESTDIR=$(CURDIR)/debian/tmp
 
37
        # move installed files to a per python runtime location to allow
 
38
        # comparison of the resulting files across runtimes or shipping
 
39
        # multiple versions
 
40
 
 
41
        # pkg-config file (this is shipped twice because of varying pyexecdir)
 
42
        mkdir -p debian/tmp/usr/lib/pkgconfig/python$*
 
43
        mv build-$*/pywebkitgtk-1.0.pc debian/tmp/usr/lib/pkgconfig/python$*
 
44
        dh_install -a
 
45
 
 
46
install-indep-%:
 
47
        dh_installdirs -i
 
48
        dh_install -i
 
49
 
 
50
binary-indep:
 
51
        dh_pysupport -i
 
52
        dh_installdeb -i
 
53
 
 
54
binary-arch: build install
 
55
        # Build architecture-dependent files here.
 
56
        dh_testdir
 
57
        dh_testroot
 
58
        dh_installdirs
 
59
        dh_installchangelogs -a NEWS
 
60
        dh_installdocs
 
61
        dh_installexamples
 
62
        dh_strip
 
63
        dh_scrollkeeper
 
64
        dh_compress
 
65
        dh_fixperms
 
66
        dh_pysupport -a
 
67
        dh_installdeb -a
 
68
        dh_shlibdeps
 
69
        dh_gencontrol
 
70
        dh_md5sums
 
71
        dh_builddeb
 
72
 
 
73
binary: binary-arch binary-indep
 
74
.PHONY: build clean binary-indep binary-arch binary install configure