~ubuntu-branches/ubuntu/utopic/libhttp-request-ascgi-perl/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyżaniak (eloy), Krzysztof Krzyżaniak (eloy), gregor herrmann
  • Date: 2009-04-28 23:25:26 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090428232526-ka2wb18isrkzh49x
Tags: 0.9-1
[ Krzysztof Krzyżaniak (eloy) ]
* New upstream release
* debian/rules: converte to new schema
* debian/control: Standards-Version update to 3.8.1
* update package to debhelper 7, use debian/rules from debhelper 7

[ gregor herrmann ]
* debian/watch: use dist-based URL.
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
  (source stanza).

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
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
26
 
        $(MAKE) OPTIMIZE="-Wall -O2 -g"
27
 
 
28
 
        touch build-stamp
 
5
        dh build
 
6
        touch $@
29
7
 
30
8
clean:
31
 
        dh_testdir
32
 
        dh_testroot
33
 
        [ ! -f Makefile ] || $(MAKE) realclean
34
 
        dh_clean build-stamp install-stamp
35
 
 
36
 
install: build install-stamp
37
 
install-stamp:
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_clean -k
41
 
        $(MAKE) test
42
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
43
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
44
 
 
45
 
        touch install-stamp
 
9
        dh $@
 
10
 
 
11
install: install-stamp
 
12
install-stamp: build-stamp
 
13
        dh install
 
14
        touch $@
46
15
 
47
16
binary-arch:
48
 
# We have nothing to do by default.
49
 
 
50
 
binary-indep: build install
51
 
        dh_testdir
52
 
        dh_testroot
53
 
        dh_installexamples examples/*.pl
54
 
        dh_installdocs README
55
 
        dh_installchangelogs Changes
56
 
        dh_perl
57
 
        dh_link
58
 
        dh_strip
59
 
        dh_compress
60
 
        dh_fixperms
61
 
        dh_installdeb
62
 
        dh_gencontrol
63
 
        dh_md5sums
64
 
        dh_builddeb
65
 
 
66
 
source diff:                                                                  
67
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
68
 
 
69
 
binary: binary-indep binary-arch
70
 
.PHONY: build clean binary-indep binary-arch binary
 
17
 
 
18
binary-indep: install
 
19
        dh $@
 
20
 
 
21
binary: binary-arch binary-indep
 
22
 
 
23
.PHONY: binary binary-arch binary-indep install clean build