~ubuntu-branches/ubuntu/lucid/libnet-dns-async-perl/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt, Jan Wagner, Ansgar Burchardt
  • Date: 2008-10-06 18:33:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081006183339-zaxy1o2lft4qorim
Tags: 1.07-1
[ Jan Wagner ]
* Updating standards version to 3.8.0, no changes needed

[ Ansgar Burchardt ]
* New upstream release.
* Refresh debian/rules for debhelper 7.
* Convert debian/copyright to proposed machine-readable format.
* Add myself to Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
# Uncomment this to turn on verbose mode.
8
 
#export DH_VERBOSE=1
9
 
 
10
 
# If set to a true value then MakeMaker's prompt function will
11
 
# always return the default without waiting for user input.
12
 
export PERL_MM_USE_DEFAULT=1
13
 
 
14
 
PACKAGE=$(shell dh_listpackages)
15
 
 
16
 
ifndef PERL
17
 
PERL = /usr/bin/perl
18
 
endif
19
 
 
20
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
21
2
 
22
3
build: build-stamp
23
4
build-stamp:
24
 
        dh_testdir
25
 
 
26
 
        # Add commands to compile the package here
27
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
28
 
        $(MAKE)
29
 
        # leave  2nd test out, cause it needs network connection
 
5
        dh build --before dh_auto_test
 
6
        # leave 2nd test out, cause it needs network connection
30
7
        $(MAKE) test TEST_FILES="t/01_use.t"
31
 
 
 
8
        dh build --after dh_auto_test
32
9
        touch $@
33
10
 
34
11
clean:
35
 
        dh_testdir
36
 
        dh_testroot
37
 
 
38
 
        dh_clean build-stamp install-stamp
39
 
 
40
 
        # Add commands to clean up after the build process here
41
 
        [ ! -f Makefile ] || $(MAKE) realclean
 
12
        dh $@
42
13
 
43
14
install: install-stamp
44
15
install-stamp: build-stamp
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_clean -k
48
 
 
49
 
        # Add commands to install the package into $(TMP) here
50
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
51
 
 
52
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
53
 
 
 
16
        dh install
54
17
        touch $@
55
18
 
56
19
binary-arch:
57
 
# We have nothing to do here for an architecture-independent package
58
 
 
59
 
binary-indep: build install
60
 
        dh_testdir
61
 
        dh_testroot
62
 
        dh_installdocs
63
 
        dh_installchangelogs
64
 
        dh_perl
65
 
        dh_compress
66
 
        dh_fixperms
67
 
        dh_installdeb
68
 
        dh_gencontrol
69
 
        dh_md5sums
70
 
        dh_builddeb
71
 
 
72
 
source diff:
73
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
74
 
 
75
 
binary: binary-indep binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary install
 
20
 
 
21
binary-indep: install
 
22
        dh $@
 
23
 
 
24
binary: binary-arch binary-indep
 
25
 
 
26
.PHONY: binary binary-arch binary-indep install clean build