~ubuntu-branches/debian/lenny/libxml-libxml-iterator-perl/lenny

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Adrian von Bidder
  • Date: 2007-04-19 20:52:49 UTC
  • Revision ID: james.westby@ubuntu.com-20070419205249-8vih30u1z431pe5m
Tags: 1.00-1
first Debian release of XML::LibXML::Iterator

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export DH_COMPAT=4
 
4
 
 
5
PACKAGE=$(shell dh_listpackages)
 
6
PREFIX=$(PWD)/debian/$(PACKAGE)/usr
 
7
 
 
8
ifndef PERL
 
9
PERL=/usr/bin/perl
 
10
endif
 
11
 
 
12
build: build-stamp
 
13
build-stamp:
 
14
        dh_testdir
 
15
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
16
        $(MAKE)
 
17
        touch $@
 
18
 
 
19
clean:
 
20
        dh_testdir
 
21
        dh_testroot
 
22
        rm -f build-stamp
 
23
        -$(MAKE) realclean
 
24
        rm -f Makefile Makefile.old
 
25
        dh_clean
 
26
 
 
27
install:
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        dh_clean -k
 
31
        dh_installdirs
 
32
        $(MAKE) install PREFIX="$(PREFIX)"
 
33
        find "$(PREFIX)" -type d -name .svn | xargs rm -rf
 
34
 
 
35
binary-arch: build install
 
36
 
 
37
binary-indep: build install
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_installdocs README
 
41
        dh_installchangelogs Changes
 
42
        dh_link
 
43
        dh_compress
 
44
        dh_fixperms
 
45
        dh_installdeb
 
46
        dh_perl
 
47
        dh_gencontrol
 
48
        dh_md5sums
 
49
        dh_builddeb
 
50
 
 
51
binary: binary-indep binary-arch
 
52
.PHONY: build clean install binary-indep binary-arch binary