~ubuntu-branches/ubuntu/oneiric/libclass-meta-perl/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyzaniak (eloy)
  • Date: 2006-01-03 17:29:20 UTC
  • Revision ID: james.westby@ubuntu.com-20060103172920-suu6pp4t42ooofv1
Tags: 0.52-1
Initial Release (closes: #345828)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# This debian/rules file is provided as a template for normal perl
 
3
# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
 
4
# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
 
5
# be used freely wherever it is useful.
 
6
#
 
7
# It was later modified by Jason Kohles <email@jasonkohles.com>
 
8
# http://www.jasonkohles.com/ to support Module::Build installed modules
 
9
 
 
10
# Uncomment this to turn on verbose mode.
 
11
#export DH_VERBOSE=1
 
12
 
 
13
# If set to a true value then MakeMaker's prompt function will
 
14
# always return the default without waiting for user input.
 
15
export PERL_MM_USE_DEFAULT=1
 
16
 
 
17
PACKAGE=$(shell dh_listpackages)
 
18
 
 
19
ifndef PERL
 
20
PERL = /usr/bin/perl
 
21
endif
 
22
 
 
23
TMP     =$(CURDIR)/debian/$(PACKAGE)
 
24
 
 
25
build: build-stamp
 
26
build-stamp:
 
27
        dh_testdir
 
28
        $(PERL) Build.PL installdirs=vendor
 
29
        OPTIMIZE="-Wall -O2 -g" $(PERL) Build
 
30
        touch build-stamp
 
31
 
 
32
clean:
 
33
        dh_testdir
 
34
        dh_testroot
 
35
        [ ! -f Build ] || $(PERL) Build distclean
 
36
        dh_clean build-stamp install-stamp
 
37
 
 
38
install: build install-stamp
 
39
install-stamp:
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        dh_clean -k
 
43
        $(PERL) Build test
 
44
        $(PERL) Build install destdir=$(TMP)
 
45
 
 
46
        touch install-stamp
 
47
 
 
48
binary-arch:
 
49
# We have nothing to do by default.
 
50
 
 
51
binary-indep: build install
 
52
        dh_testdir
 
53
        dh_testroot
 
54
#       dh_installexamples
 
55
        dh_installdocs README
 
56
        dh_installchangelogs Changes
 
57
        dh_perl
 
58
        dh_link
 
59
        dh_strip
 
60
        dh_compress
 
61
        dh_fixperms
 
62
        dh_installdeb
 
63
        dh_gencontrol
 
64
        dh_md5sums
 
65
        dh_builddeb
 
66
 
 
67
source diff:                                                                  
 
68
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
69
 
 
70
binary: binary-indep binary-arch
 
71
.PHONY: build clean binary-indep binary-arch binary