~ubuntu-branches/ubuntu/natty/faulthandler/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz
  • Date: 2011-02-08 01:06:39 UTC
  • Revision ID: james.westby@ubuntu.com-20110208010639-a18m73uo7k9ra5m8
Tags: 1.3-1
Initial release. Closes: #612363

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
include /usr/share/quilt/quilt.make
 
4
 
 
5
PYVERS=$(shell pyversions -vs)
 
6
 
 
7
config: config-stamp
 
8
config-stamp: 
 
9
        dh_testdir
 
10
        [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
 
11
        touch $@
 
12
 
 
13
build: $(PYVERS:%=build-python%)
 
14
 
 
15
build-python%: config-stamp
 
16
        dh_testdir
 
17
        python$* setup.py build
 
18
        touch $@
 
19
 
 
20
clean: unpatch
 
21
        dh_testdir
 
22
        dh_testroot
 
23
        rm -f config-stamp build-python?.* install-python?.*
 
24
        rm -f `find . -name "*.pyc"`
 
25
        rm -rf build
 
26
        [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
 
27
        dh_clean
 
28
 
 
29
install: build $(PYVERS:%=install-python%)
 
30
 
 
31
install-python%:
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        python$* setup.py install \
 
35
                --no-compile \
 
36
                --root=$(CURDIR)/debian/python-faulthandler
 
37
        touch $@
 
38
 
 
39
binary-indep: build install
 
40
 
 
41
binary-arch: build install
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        dh_installchangelogs -a
 
45
        dh_installdocs -a
 
46
        dh_installexamples -a
 
47
        dh_install -a
 
48
        dh_installman -a
 
49
        dh_link -a
 
50
        dh_strip -a
 
51
        dh_compress -a
 
52
        dh_fixperms -a
 
53
        dh_pysupport -a
 
54
        [ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo -a
 
55
        dh_installdeb -a
 
56
        dh_shlibdeps -a
 
57
        dh_gencontrol -a
 
58
        dh_md5sums -a
 
59
        dh_builddeb -a
 
60
 
 
61
binary: binary-indep binary-arch
 
62
.PHONY: config build clean binary-indep binary-arch binary install