~ubuntu-branches/ubuntu/intrepid/libfile-remove-perl/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2008-06-14 21:24:16 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080614212416-vzgst4z13tj48v38
Tags: 1.41-1
* New upstream release.
* debian/watch: extended regexp for matching upstream releases.
* Set Standards-Version to 3.8.0 (no changes).
* Add /me to Uploaders.
* Refresh debian/rules, no functional changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# always return the default without waiting for user input.
12
12
export PERL_MM_USE_DEFAULT=1
13
13
 
14
 
PACKAGE=$(shell dh_listpackages)
15
 
 
16
 
ifndef PERL
17
 
PERL = /usr/bin/perl
18
 
endif
19
 
 
20
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
 
14
PERL   ?= /usr/bin/perl
 
15
PACKAGE = $(shell dh_listpackages)
 
16
TMP     = $(CURDIR)/debian/$(PACKAGE)
21
17
 
22
18
build: build-stamp
23
19
build-stamp:
31
27
        dh_testdir
32
28
        dh_testroot
33
29
        dh_clean build-stamp install-stamp
34
 
        # Add commands to clean up after the build process here
35
 
        [ ! -f Makefile ] || $(MAKE) distclean
 
30
        [ ! -f Makefile ] || $(MAKE) realclean
36
31
 
37
32
install: install-stamp
38
33
install-stamp: build-stamp
40
35
        dh_testroot
41
36
        dh_clean -k
42
37
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
43
 
        # As this is a architecture independent package, we are not
44
 
        # supposed to install stuff to /usr/lib. MakeMaker creates
45
 
        # the dirs, we delete them from the deb:
46
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
38
        [ ! -d $(TMP)/usr/lib/perl5 ] || \
 
39
                rmdir --ignore-fail-on-non-empty --parents --verbose \
 
40
                $(TMP)/usr/lib/perl5
47
41
        touch $@
48
42
 
49
43
binary-arch:
50
 
# We have nothing to do by default.
 
44
# We have nothing to do here for an architecture-independent package
51
45
 
52
46
binary-indep: build install
53
47
        dh_testdir
62
56
        dh_md5sums
63
57
        dh_builddeb
64
58
 
65
 
source diff:                                                                  
66
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
67
 
 
68
59
binary: binary-indep binary-arch
69
 
.PHONY: build clean binary-indep binary-arch binary
 
60
.PHONY: build clean binary-indep binary-arch binary install