~ubuntu-branches/ubuntu/lucid/myghtyutils/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2006-10-17 00:53:52 UTC
  • Revision ID: james.westby@ubuntu.com-20061017005352-6ub4meltj9uufwcc
Tags: 0.52-1
Initial release (Closes: #393739).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
 
6
        | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
 
7
package=python-myghtyutils
 
8
 
 
9
clean:
 
10
        rm -f build-*
 
11
        dh_testdir
 
12
        dh_testroot
 
13
        python setup.py clean
 
14
        rm -rf build
 
15
        find . -name *\.py[co] -exec rm -f {} \;
 
16
        dh_clean
 
17
 
 
18
build: build-indep
 
19
 
 
20
build-indep:
 
21
        touch $@
 
22
 
 
23
build-stamp: 
 
24
        dh_testdir
 
25
        python setup.py build
 
26
        touch $@
 
27
 
 
28
install: build
 
29
        dh_testdir
 
30
        dh_testroot
 
31
        dh_clean -k
 
32
        dh_installdirs
 
33
        python setup.py install \
 
34
                --no-compile \
 
35
                --single-version-externally-managed \
 
36
                --root $(CURDIR)/debian/$(package)
 
37
 
 
38
binary-indep: build install
 
39
        dh_testdir
 
40
        dh_testroot
 
41
        dh_installchangelogs
 
42
        dh_installdocs
 
43
        dh_installexamples
 
44
        dh_strip
 
45
        dh_compress -X.py
 
46
        dh_fixperms
 
47
        dh_pysupport
 
48
        mv debian/$(package)/usr/share/python-support/$(package)/MyghtyUtils-${DEB_UPSTREAM_VERSION}-py[0-9].[0-9].egg-info \
 
49
        debian/$(package)/usr/share/python-support/$(package)/myghtyutils-${DEB_UPSTREAM_VERSION}.egg-info
 
50
        dh_installdeb
 
51
        dh_shlibdeps
 
52
        dh_gencontrol
 
53
        dh_md5sums
 
54
        dh_builddeb
 
55
 
 
56
binary-arch:
 
57
 
 
58
binary: binary-indep binary-arch
 
59
.PHONY: build clean binary-indep binary-arch binary install configure