~ubuntu-branches/ubuntu/trusty/libnetpacket-perl/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2009-11-21 15:18:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091121151828-2jq4kk0shmm0ti3e
Tags: 0.41.1-1
New Upstream Version (Closes: #557161)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4
4
# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5
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
6
9
 
7
10
# Uncomment this to turn on verbose mode.
8
11
#export DH_VERBOSE=1
11
14
# always return the default without waiting for user input.
12
15
export PERL_MM_USE_DEFAULT=1
13
16
 
14
 
PACKAGE=$(shell dh_listpackages)
15
 
 
16
 
ifndef PERL
17
 
PERL = /usr/bin/perl
18
 
endif
19
 
 
20
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
 
17
PERL   ?= /usr/bin/perl
 
18
PACKAGE = $(shell dh_listpackages)
 
19
TMP     = $(CURDIR)/debian/$(PACKAGE)
21
20
 
22
21
build: build-stamp
23
22
build-stamp:
24
23
        dh_testdir
25
 
 
26
24
        # Add commands to compile the package here
27
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
28
 
        $(MAKE)
29
 
        $(MAKE) test
30
 
 
 
25
        $(PERL) Build.PL installdirs=vendor
 
26
        $(PERL) Build
 
27
        $(PERL) Build test
31
28
        touch $@
32
29
 
33
30
clean:
34
31
        dh_testdir
35
32
        dh_testroot
36
 
 
37
33
        dh_clean build-stamp install-stamp
38
 
 
39
34
        # Add commands to clean up after the build process here
40
 
        [ ! -f Makefile ] || $(MAKE) realclean
 
35
        [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
41
36
 
42
37
install: install-stamp
43
38
install-stamp: build-stamp
44
39
        dh_testdir
45
40
        dh_testroot
46
41
        dh_clean -k
47
 
 
48
42
        # Add commands to install the package into $(TMP) here
49
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
50
 
 
51
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
52
 
 
 
43
        $(PERL) Build install destdir=$(TMP) create_packlist=0
53
44
        touch $@
54
45
 
55
46
binary-arch:
58
49
binary-indep: build install
59
50
        dh_testdir
60
51
        dh_testroot
61
 
        dh_installexamples
62
52
        dh_installdocs README
63
 
        dh_installchangelogs 
 
53
        dh_installchangelogs Changes
64
54
        dh_perl
65
55
        dh_compress
66
56
        dh_fixperms
69
59
        dh_md5sums
70
60
        dh_builddeb
71
61
 
72
 
source diff:
73
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
74
 
 
75
62
binary: binary-indep binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary
 
63
.PHONY: build clean binary-indep binary-arch binary install