~ubuntu-branches/ubuntu/trusty/libmath-basecalc-perl/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt, Ansgar Burchardt, gregor herrmann
  • Date: 2008-08-16 22:51:44 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080816225144-lznk1aqxudrzvt1r
Tags: 1.012-2
[ Ansgar Burchardt ]
* New Maintainer: Debian Perl Group (Closes: #494594)
* Add myself to Uploaders
* Update Homepage field to standard value used by the Debian Perl Group
* debian/watch: Use dist-based URL
* Refresh debian/rules for debhelper 7
* Convert debian/copyright to proposed machine-readable format 

[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza).
* Add build dependency on libtest-pod-coverage-perl (used in tests).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
#-*- makefile -*-
3
 
# Made with the aid of dh_make, by Craig Small
4
 
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5
 
# Some lines taken from debmake, by Christoph Lameter.
6
 
 
7
 
# Uncomment this to turn on verbose mode.
8
 
#export DH_VERBOSE=1
9
 
 
10
 
ifndef PERL
11
 
PERL = /usr/bin/perl
12
 
endif
13
 
 
14
 
TMP     =`pwd`/debian/tmp
15
 
archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
16
 
 
17
2
 
18
3
build: build-stamp
19
4
build-stamp:
20
 
        dh_testdir
21
 
 
22
 
        # Add here commands to compile the package.
23
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
24
 
        $(MAKE) CFLAGS="-O2 -g -Wall"
25
 
 
26
 
        touch build-stamp
 
5
        TEST_POD=1 dh build
 
6
        touch $@
27
7
 
28
8
clean:
29
 
        dh_testdir
30
 
        dh_testroot
31
 
        rm -f build-stamp install-stamp
32
 
 
33
 
        # Add here commands to clean up after the build process.
34
 
        -$(MAKE) realclean
35
 
 
36
 
        dh_clean
 
9
        dh $@
37
10
 
38
11
install: install-stamp
39
12
install-stamp: build-stamp
40
 
        dh_testdir
41
 
        dh_testroot
42
 
        dh_clean -k
43
 
        dh_installdirs
44
 
 
45
 
        # Add here commands to install the package into debian/tmp.
46
 
        $(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr
47
 
        #$(MAKE) pure_vendor_install
48
 
 
49
 
        touch install-stamp
50
 
 
51
 
# Build architecture-dependent files here.
52
 
binary-arch: build install
53
 
 
54
 
# Build architecture-independent files here.
55
 
binary-indep: build install
56
 
#       dh_testversion
57
 
        dh_testdir
58
 
        dh_testroot
59
 
        dh_installdocs 
60
 
        dh_installexamples
61
 
        dh_installmenu
62
 
        dh_installcron
63
 
        dh_installmanpages
64
 
        dh_installchangelogs Changes
65
 
        dh_link
66
 
        dh_strip
67
 
        dh_compress
68
 
        dh_fixperms
69
 
        dh_installdeb
70
 
        dh_perl 
71
 
        dh_shlibdeps
72
 
        dh_gencontrol
73
 
        dh_md5sums
74
 
        dh_builddeb
75
 
 
76
 
source diff:                                                                  
77
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
78
 
 
79
 
binary: binary-indep
80
 
.PHONY: build clean binary-indep binary
 
13
        dh install
 
14
        touch $@
 
15
 
 
16
binary-arch:
 
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