~ubuntu-branches/ubuntu/karmic/libapache-session-perl/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayorga, Joachim Breitner, Rene Mayorga, gregor herrmann
  • Date: 2008-08-09 23:01:05 UTC
  • mfrom: (1.1.7 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080809230105-wi03x8sc9cyxeges
Tags: 1.87-1
[ Joachim Breitner ]
* Removed myself from uploaders.

[ Rene Mayorga ]
* New upstream release
* debian/control
  + Set standards-Version to 3.8.0 
    + Add README.source
  + Bump compat level and dehelper to 7
  + Add myself to uploaders
  + Add ${misc:Depends} to Depends field
* refresh debian/rules with rules.dh7.noxs
* Add shebang to examples instead or changing their perms.
  + Adding shebang_examples.patch
  + Add quilt to Build-Depends
* Convert debian/copyright to the new proposed format

[ gregor herrmann ]
* debian/control: change my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
PERL ?= /usr/bin/perl
4
 
 
5
 
b := $(CURDIR)/debian/libapache-session-perl
6
 
 
7
 
binary: binary-arch binary-indep
8
 
 
9
 
binary-arch: build install
10
 
 
11
 
binary-indep: build install
12
 
        dh_testdir
13
 
        dh_testroot
14
 
        dh_installdocs README
15
 
        dh_installexamples eg/*
16
 
        dh_installchangelogs CHANGES
17
 
        dh_compress
18
 
        dh_fixperms
19
 
        dh_installdeb
20
 
        dh_perl
21
 
        dh_gencontrol
22
 
        dh_md5sums
23
 
        dh_builddeb
 
2
include /usr/share/quilt/quilt.make
24
3
 
25
4
build: build-stamp
26
 
build-stamp: 
27
 
        dh_testdir
28
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
29
 
        $(MAKE)
30
 
        $(MAKE) test
31
 
        # This example should not have the executable bit on - It does not
32
 
        # have a #!/usr/bin/perl line, and specifically advises not to just
33
 
        # run it.
34
 
        chmod 644 eg/example.perl
35
 
        touch build-stamp
 
5
build-stamp: $(QUILT_STAMPFN)
 
6
        dh build
 
7
        touch $@
36
8
 
37
 
clean:
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_clean build-stamp install-stamp
41
 
        if [ -e Makefile ]; then $(MAKE) -i distclean; fi
 
9
clean: unpatch
 
10
        dh $@
42
11
 
43
12
install: install-stamp
44
13
install-stamp: build-stamp
45
 
        dh_testdir
46
 
        dh_installdirs
47
 
        $(MAKE) install PREFIX=$(b)/usr
48
 
        # As this is a architecture independent package, we are not
49
 
        # supposed to install stuff to /usr/lib. MakeMaker creates
50
 
        # the dirs, we delete them from the deb:
51
 
        [ ! -d $(b)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(b)/usr/lib/perl5
52
 
                                
53
 
        touch install-stamp
54
 
 
55
 
.PHONY: binary binary-arch binary-indep build clean install
 
14
        dh install
 
15
        touch $@
 
16
 
 
17
binary-arch:
 
18
 
 
19
binary-indep: install
 
20
        dh $@
 
21
 
 
22
binary: binary-arch binary-indep
 
23
 
 
24
.PHONY: binary binary-arch binary-indep install clean build