~ubuntu-branches/ubuntu/lucid/xzip/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-04-28 05:06:15 UTC
  • Revision ID: james.westby@ubuntu.com-20040428050615-07kk3bubuck40m0w
Tags: 1:1.8.2-3
* Bump Standards-Version to 3.6.1 (no changes needed).
* Corrected formatting error in debian/copyright (thanks lintian).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# debian.rules file - for xzip (2.4)
3
 
# Based on sample debian.rules file (copyright 1994,1995 by Ian Jackson).
4
 
#
5
 
# I hereby give you perpetual unlimited permission to copy,
6
 
# modify and relicense this file, provided that you do not remove
7
 
# my name from the file itself.  (I assert my moral right of
8
 
# paternity under the Copyright, Designs and Patents Act 1988.)
9
 
 
10
 
package=xzip
11
 
 
12
 
build:
13
 
        $(checkdir)
14
 
        $(MAKE)
15
 
        touch build
16
 
 
17
 
clean:
18
 
        $(checkdir)
19
 
        -rm -f build
20
 
        -$(MAKE) clean
21
 
        -rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
22
 
 
23
 
binary-indep:   checkroot build
24
 
        $(checkdir)
25
 
# There are no architecture-independent files to be uploaded
26
 
# generated by this package.  If there were any they would be
27
 
# made here.
28
 
 
29
 
binary-arch:    checkroot build
30
 
        $(checkdir)
31
 
        -rm -rf debian/tmp
32
 
        # First create directories
33
 
        install -d debian/tmp debian/tmp/DEBIAN
34
 
        install -d debian/tmp/usr/share/doc/$(package)
35
 
        install -d debian/tmp/usr/games
36
 
        install -d debian/tmp/usr/share/man/man6
37
 
        # Copy documentation
38
 
        cp debian/copyright debian/tmp/usr/share/doc/$(package)
39
 
        cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
40
 
        gzip -9v debian/tmp/usr/share/doc/$(package)/changelog.Debian
41
 
        install -m 0644 README debian/tmp/usr/share/doc/$(package)
42
 
        # Copy other files
43
 
        install -s xzip debian/tmp/usr/games
44
 
        install -m 0644 xzip.1 debian/tmp/usr/share/man/man6/xzip.6
45
 
        gzip -9v debian/tmp/usr/share/man/man6/xzip.6
46
 
        # Various bits and pieces needed to build package
47
 
        cp debian/{postinst,prerm} debian/tmp/DEBIAN/.
48
 
        chmod +x debian/tmp/DEBIAN/{postinst,prerm}
49
 
        dpkg-shlibdeps debian/tmp/usr/games/xzip
50
 
        dpkg-gencontrol -isp
51
 
        chown -R root.root debian/tmp
52
 
        chmod -R g-ws debian/tmp
53
 
        dpkg --build debian/tmp ..
54
 
 
55
 
define checkdir
56
 
        test -f zip.c -a -f debian/rules
57
 
endef
58
 
 
59
 
# Below here is fairly generic really
60
 
 
61
 
binary:         binary-indep binary-arch
62
 
 
63
 
source diff:
64
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
65
 
 
66
 
checkroot:
67
 
        $(checkdir)
68
 
        test root = "`whoami`"
69
 
 
70
 
.PHONY: binary binary-arch binary-indep clean checkroot
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/makefile.mk
 
5
include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
6
 
 
7
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR)