~ubuntu-branches/ubuntu/trusty/libcatalyst-view-tt-perl/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyżaniak (eloy)
  • Date: 2009-03-04 12:17:00 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090304121700-rda77pxmrk31q57c
Tags: 0.29-1
* New upstream release
* Move package under Debian Perl Group umbrella.
* debian/control: 
 + update dependency from libmro-compat-perl, 
 + update Standards-Version to 3.8.0.1 (no changes), 
 + update package to debhelper 7
* debian/rules: use debhelper 7 example
* debian/watch: update to last schema
* debian/copyright: converted to new schema

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
PACKAGE=$(shell dh_listpackages)
4
 
 
5
 
ifndef PERL
6
 
PERL = /usr/bin/perl
7
 
endif
8
 
 
9
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
10
 
 
11
3
build: build-stamp
12
4
build-stamp:
13
 
        dh_testdir
14
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
15
 
        $(MAKE)
16
 
        touch build-stamp
 
5
        dh build
 
6
        touch $@
17
7
 
18
8
clean:
19
 
        dh_testdir
20
 
        dh_testroot
21
 
        [ ! -f Makefile ] || $(MAKE) distclean
22
 
        dh_clean build-stamp install-stamp
 
9
        dh $@
23
10
 
24
11
install: install-stamp
25
12
install-stamp: build-stamp
26
 
        dh_testdir
27
 
        dh_testroot
28
 
        dh_clean -k
29
 
        TEST_POD=1 $(MAKE) test
30
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
31
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
32
 
        touch install-stamp
 
13
        dh install
 
14
        touch $@
33
15
 
34
16
binary-arch:
35
 
# We have nothing to do by default.
36
 
 
37
 
binary-indep: build install
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_installdocs
41
 
        dh_perl
42
 
        dh_installchangelogs Changes
43
 
        dh_link
44
 
        dh_strip
45
 
        dh_compress
46
 
        dh_fixperms
47
 
        dh_installdeb
48
 
        dh_gencontrol
49
 
        dh_md5sums
50
 
        dh_builddeb
51
 
 
52
 
source diff:                                                                  
53
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
54
 
 
55
 
binary: binary-indep binary-arch
56
 
.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