~ubuntu-branches/ubuntu/natty/9base/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-20 17:34:06 UTC
  • mfrom: (6.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090820173406-xpwqa9ruyevvc0ut
Tags: 1:3-3
* Updating maintainer field.
* Updating vcs fields.
* Updating package to standards version 3.8.3.
* Updatin variables writing in rules to consistent style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
4
 
 
5
 
clean: unpatch
6
 
        dh_testdir
7
 
        dh_testroot
8
 
        rm -f build-stamp
9
 
 
10
 
        [ ! -f Makefile ] || $(MAKE) clean
11
 
 
12
 
        dh_clean
13
 
 
14
 
build: build-stamp
15
 
build-stamp: patch
16
 
        dh_testdir
17
 
 
 
3
SHELL := sh -e
 
4
 
 
5
%:
 
6
        dh ${@} --with quilt
 
7
 
 
8
override_dh_auto_build:
18
9
        $(MAKE) LDFLAGS="" PREFIX=/usr/lib/9base MANPREFIX=/usr/share/man
19
10
 
20
 
        touch build-stamp
21
 
 
22
 
install: build
23
 
        dh_testdir
24
 
        dh_testroot
25
 
        dh_prep
26
 
        dh_installdirs
27
 
 
 
11
override_dh_auto_install:
28
12
        $(MAKE) DESTDIR=$(CURDIR)/debian/9base PREFIX=/usr/lib/9base MANPREFIX=/usr/share/man install
29
13
 
30
 
        set -e; for MANPAGE in debian/9base/usr/share/man/man1/* debian/9base/usr/share/man/man7/*; \
 
14
        for MANPAGE in debian/9base/usr/share/man/man1/* debian/9base/usr/share/man/man7/*; \
31
15
        do \
32
 
                mv $$MANPAGE `dirname $$MANPAGE`/9base-`basename $$MANPAGE`; \
 
16
                mv $${MANPAGE} `dirname $${MANPAGE}`/9base-`basename $${MANPAGE}`; \
33
17
        done
34
 
 
35
 
binary: binary-arch
36
 
 
37
 
binary-arch: build install
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_installchangelogs
41
 
        dh_installdocs
42
 
        dh_lintian
43
 
        dh_strip
44
 
        dh_compress
45
 
        dh_fixperms
46
 
        dh_installdeb
47
 
        dh_shlibdeps
48
 
        dh_gencontrol
49
 
        dh_md5sums
50
 
        dh_builddeb
51
 
 
52
 
binary-indep:
53
 
 
54
 
.PHONY: clean build install binary binary-arch binary-indep