~ubuntu-branches/ubuntu/saucy/libchart-strip-perl/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dominic Hargreaves
  • Date: 2012-03-18 21:11:08 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120318211108-hbfdidex6r4lffa5
Tags: 1.08-1
* Add Vcs-* URLs
* Update to debhelper compat level 8 with minimal rules
* Switch to dpkg-source 3.0 (quilt) format
* Update Standards-Version (no changes)
* New upstream release
* Add missing Copyright statement to debian/copyright

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
 
 
22
 
build: build-stamp
23
 
build-stamp:
24
 
        dh_testdir
25
 
 
26
 
        # Add commands to compile the package here
27
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
28
 
        $(MAKE) OPTIMIZE="-Wall -O2 -g"
29
 
 
30
 
        touch build-stamp
31
 
 
32
 
clean:
33
 
        dh_testdir
34
 
        dh_testroot
35
 
 
36
 
        # Add commands to clean up after the build process here
37
 
        [ ! -f Makefile ] || $(MAKE) distclean
38
 
 
39
 
        dh_clean build-stamp install-stamp
40
 
 
41
 
install: build install-stamp
42
 
install-stamp:
43
 
        dh_testdir
44
 
        dh_testroot
45
 
        dh_clean -k
46
 
 
47
 
        # Add commands to install the package into debian/$PACKAGE_NAME here
48
 
        $(MAKE) test
49
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
50
 
 
51
 
        # As this is a architecture independent package, we are not
52
 
        # supposed to install stuff to /usr/lib. MakeMaker creates
53
 
        # the dirs, we delete them from the deb:
54
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
55
 
 
56
 
        touch install-stamp
57
 
 
58
 
binary-arch:
59
 
# We have nothing to do by default.
60
 
 
61
 
binary-indep: build install
62
 
        dh_testdir
63
 
        dh_testroot
64
 
#       dh_installcron
65
 
#       dh_installmenu
66
 
        dh_installexamples eg/*
67
 
        dh_installdocs README
68
 
        dh_installchangelogs 
69
 
        dh_perl
70
 
        dh_link
71
 
        dh_strip
72
 
        dh_compress
73
 
        dh_fixperms
74
 
        dh_installdeb
75
 
        dh_gencontrol
76
 
        dh_md5sums
77
 
        dh_builddeb
78
 
 
79
 
source diff:                                                                  
80
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
81
 
 
82
 
binary: binary-indep binary-arch
83
 
.PHONY: build clean binary-indep binary-arch binary
 
2
 
 
3
%:
 
4
        dh $@