~ubuntu-branches/ubuntu/hardy/eject/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Mitchell
  • Date: 2001-04-25 12:07:56 UTC
  • Revision ID: james.westby@ubuntu.com-20010425120756-gjwz2tjp4p7ge1ac
Tags: 2.0.3-1
* New upstream release, with kernel 2.4 support. (closes: #88379)
* Correct manpage syntax. (closes: #90283)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian.rules file - for GNU Hello (1.3).
3
 
# Copyright 1994,1995 by Ian Jackson.
4
 
# I hereby give you perpetual unlimited permission to copy,
5
 
# modify and relicense this file, provided that you do not remove
6
 
# my name from the file itself.  (I assert my moral right of
7
 
# paternity under the Copyright, Designs and Patents Act 1988.)
8
 
# This file may have to be extensively modified
9
 
 
10
 
# There used to be `source' and `diff' targets in this file, and many
11
 
# packages also had `changes' and `dist' targets.  These functions
12
 
# have been taken over by dpkg-source, dpkg-genchanges and
13
 
# dpkg-buildpackage in a package-independent way, and so these targets
14
 
# are obsolete.
 
2
# debian/rules build file for eject copyright Martin Mitchell 2001.
 
3
# this file is placed under the GNU GPL.
15
4
 
16
5
package=eject
17
 
STRIP=strip
 
6
STRIP=strip --strip-unneeded --remove-section=.note --remove-section=.comment
18
7
 
19
8
build:
20
9
        $(checkdir)
21
 
        $(MAKE) CFLAGS="-Wall -O2 -g" LDFLAGS="-g"
 
10
        $(MAKE) CFLAGS="-Wall -O2 -g" LDFLAGS="-g" eject
 
11
        $(MAKE) CFLAGS="-Wall -O2 -g" LDFLAGS="-g" volname
22
12
        touch build
23
13
 
24
14
clean:
37
27
binary-arch:    checkroot build
38
28
        $(checkdir)
39
29
        -rm -rf debian/tmp
40
 
        install -d debian/tmp/DEBIAN debian/tmp/usr/bin debian/tmp/usr/doc/eject debian/tmp/usr/man/man1
 
30
        install -d debian/tmp/DEBIAN debian/tmp/usr/bin debian/tmp/usr/share/doc/eject debian/tmp/usr/share/man/man1
41
31
        install -m 755 eject debian/tmp/usr/bin/eject
42
 
        install -m 644 eject.1 debian/tmp/usr/man/man1
 
32
        install -m 644 eject.1 debian/tmp/usr/share/man/man1
43
33
        $(STRIP) debian/tmp/usr/bin/eject
44
 
        gzip -9v debian/tmp/usr/man/man1/*
45
 
        cp ChangeLog README debian/tmp/usr/doc/eject
46
 
        cp debian/changelog debian/tmp/usr/doc/eject/changelog.Debian
47
 
        gzip -9v debian/tmp/usr/doc/eject/*
48
 
        cd debian/tmp/usr/doc/eject && ln -s ChangeLog.gz changelog.gz
49
 
        cp debian/copyright debian/tmp/usr/doc/eject
 
34
        install -m 755 volname debian/tmp/usr/bin/volname
 
35
        $(STRIP) debian/tmp/usr/bin/volname
 
36
        gzip -9v debian/tmp/usr/share/man/man1/*
 
37
        ( cd debian/tmp/usr/share/man/man1 && ln -s ../man7/undocumented.7.gz volname.1.gz )
 
38
        cp ChangeLog README debian/tmp/usr/share/doc/eject
 
39
        cp debian/changelog debian/tmp/usr/share/doc/eject/changelog.Debian
 
40
        gzip -9v debian/tmp/usr/share/doc/eject/*
 
41
        cd debian/tmp/usr/share/doc/eject && ln -s ChangeLog.gz changelog.gz
 
42
        cp debian/copyright debian/tmp/usr/share/doc/eject
50
43
        dpkg-shlibdeps debian/tmp/usr/bin/eject
51
 
        dpkg-gencontrol
 
44
        dpkg-gencontrol -isp
52
45
        chown -R root.root debian/tmp
53
46
        chmod -R g-ws debian/tmp
54
47
        dpkg --build debian/tmp ..
61
54
 
62
55
binary:         binary-indep binary-arch
63
56
 
64
 
source diff:
65
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
66
 
 
67
57
checkroot:
68
58
        $(checkdir)
69
59
        test root = "`whoami`"