~ubuntu-branches/ubuntu/lucid/libuniversal-moniker-perl/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Quinney
  • Date: 2004-02-25 16:19:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040225161907-wbgaf20nt0j4sh0r
Tags: 0.07-1
* New upstream release - performance improvement.
* Now just recommend Lingua::EN::Inflect instead of depending.
* Updated copyright file.
* Added in the upstream Changes file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# Define the perl interpreter
 
9
 
 
10
PACKAGE = $(shell dh_listpackages)
 
11
 
 
12
TMP     =`pwd`/debian/$(PACKAGE)
 
13
 
 
14
PERL = /usr/bin/perl
 
15
 
 
16
configure: configure-stamp
 
17
configure-stamp:
 
18
        dh_testdir
 
19
        # Add here commands to configure the package.
 
20
 
 
21
        perl Makefile.PL verbose INSTALLDIRS=vendor
 
22
 
 
23
        touch configure-stamp
 
24
 
 
25
build: build-stamp
 
26
build-stamp: configure-stamp 
 
27
        dh_testdir
 
28
 
 
29
        # Add here commands to compile the package.
 
30
 
 
31
        $(MAKE)
 
32
        $(MAKE) test
 
33
        touch build-stamp
 
34
 
 
35
clean:
 
36
        dh_testdir
 
37
        dh_testroot
 
38
        rm -f build-stamp configure-stamp
 
39
 
 
40
        # Add here commands to clean up after the build process.
 
41
        -$(MAKE) distclean
 
42
 
 
43
        dh_clean
 
44
 
 
45
install: build
 
46
        dh_testdir
 
47
        dh_testroot
 
48
        dh_clean -k
 
49
        dh_installdirs
 
50
 
 
51
        # Add here commands to install the package into debian/tmp
 
52
        $(MAKE) install PREFIX=$(TMP)/usr
 
53
 
 
54
        # Remove any empty directories
 
55
 
 
56
        -find $(TMP) -type d -empty -print0 | xargs --null rmdir -p --ignore-fail-on-non-empty
 
57
 
 
58
# Build architecture-independent files here.
 
59
binary-arch: build install
 
60
# We have nothing to do by default.
 
61
 
 
62
# Build architecture-dependent files here.
 
63
binary-indep: build install
 
64
        dh_testdir
 
65
        dh_testroot
 
66
        dh_perl
 
67
        dh_installdocs README
 
68
        dh_installman
 
69
        dh_installchangelogs Changes
 
70
        dh_compress
 
71
        dh_fixperms
 
72
        dh_installdeb
 
73
        dh_gencontrol
 
74
        dh_md5sums
 
75
        dh_builddeb
 
76
 
 
77
binary: binary-indep binary-arch
 
78
.PHONY: build clean binary-indep binary-arch binary install configure