3 # $Id: rules,v 1.1 2001-05-28 12:44:03 adam Exp $
5 # Sample debian/rules file - for GNU Hello (1.3).
6 # Copyright 1994,1995 by Ian Jackson.
7 # I hereby give you perpetual unlimited permission to copy,
8 # modify and relicense this file, provided that you do not remove
9 # my name from the file itself. (I assert my moral right of
10 # paternity under the Copyright, Designs and Patents Act 1988.)
11 # This file may have to be extensively modified
18 ./configure --prefix=/usr --enable-shared
20 cd doc; $(MAKE) CFLAGS=-O2
27 rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
29 binary-indep: checkroot build
31 # There are no architecture-independent files to be uploaded
32 # generated by this package. If there were any they would be
35 binary-arch: checkroot build
38 install -d debian/tmp/DEBIAN\
39 -d debian/tmp/usr/share/doc/$(package)
40 install -m 755 debian/postinst debian/prerm debian/tmp/DEBIAN
41 install -m 644 debian/shlibs debian/tmp/DEBIAN
42 $(MAKE) prefix=`pwd`/debian/tmp/usr install
43 install -m 644 doc/*.html debian/tmp/usr/share/doc/$(package)
44 install -m 644 doc/*.ps debian/tmp/usr/share/doc/$(package)
45 install -m 644 doc/*.txt debian/tmp/usr/share/doc/$(package)
46 gzip debian/tmp/usr/share/doc/$(package)/*.ps
47 gzip debian/tmp/usr/share/doc/$(package)/*.txt
48 cp debian/copyright debian/tmp/usr/share/doc/$(package)/.
49 cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
50 cp CHANGELOG debian/tmp/usr/share/doc/$(package)/changelog
51 strip --strip-debug debian/tmp/usr/lib/*.a
52 strip --strip-unneeded debian/tmp/usr/lib/lib*.so.$(version)
53 dpkg-shlibdeps debian/tmp/usr/bin/yaz-client debian/tmp/usr/bin/yaz-ztest
55 chown -R root.root debian/tmp
56 chmod -R g-ws debian/tmp
57 dpkg --build debian/tmp ..
63 # Below here is fairly generic really
65 binary: binary-indep binary-arch
69 test root = "`whoami`"
71 .PHONY: binary binary-arch binary-indep clean checkroot