X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=debian%2Frules;h=c260d652728e9c8c24ad676e7e109f800d848596;hp=c08f2d7f8cd9ebf334e353a4f82bbb478d03fe86;hb=834b8cc2eae2f3ebf8256cacf8cc137bcc91c038;hpb=6e30fa2d25d57c9551106c1c2713c9da18a9f79d diff --git a/debian/rules b/debian/rules index c08f2d7..c260d65 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,8 @@ #!/usr/bin/make -f # Debian rules for YAZ -# $Id: rules,v 1.1 2001-05-28 12:44:03 adam Exp $ +# $Id: rules,v 1.2 2001-06-13 20:47:40 adam Exp $ # +# Modified from: # Sample debian/rules file - for GNU Hello (1.3). # Copyright 1994,1995 by Ian Jackson. # I hereby give you perpetual unlimited permission to copy, @@ -11,19 +12,19 @@ # This file may have to be extensively modified package=yaz -version=1.0.0 +soversion=1.0.0 build: $(checkdir) - ./configure --prefix=/usr --enable-shared - $(MAKE) CFLAGS=-O2 - cd doc; $(MAKE) CFLAGS=-O2 + mkdir build + cd build; ../configure --prefix=/usr --enable-shared + cd build; $(MAKE) CFLAGS=-O2 + cd build/doc; $(MAKE) CFLAGS=-O2 touch build clean: $(checkdir) - rm -f build - -$(MAKE) -i distclean + rm -rf build rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars binary-indep: checkroot build @@ -39,17 +40,20 @@ binary-arch: checkroot build -d debian/tmp/usr/share/doc/$(package) install -m 755 debian/postinst debian/prerm debian/tmp/DEBIAN install -m 644 debian/shlibs debian/tmp/DEBIAN - $(MAKE) prefix=`pwd`/debian/tmp/usr install - install -m 644 doc/*.html debian/tmp/usr/share/doc/$(package) - install -m 644 doc/*.ps debian/tmp/usr/share/doc/$(package) - install -m 644 doc/*.txt debian/tmp/usr/share/doc/$(package) + cd build; $(MAKE) prefix=`pwd`/../debian/tmp/usr install + if test -f doc/yaz.txt; then \ + install -m 644 doc/*.html doc/*.ps doc/*.txt debian/tmp/usr/share/doc/$(package); \ + else \ + install -m 644 build/doc/*.html build/doc/*.ps build/doc/*.txt debian/tmp/usr/share/doc/$(package); \ + fi gzip debian/tmp/usr/share/doc/$(package)/*.ps gzip debian/tmp/usr/share/doc/$(package)/*.txt cp debian/copyright debian/tmp/usr/share/doc/$(package)/. cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian cp CHANGELOG debian/tmp/usr/share/doc/$(package)/changelog strip --strip-debug debian/tmp/usr/lib/*.a - strip --strip-unneeded debian/tmp/usr/lib/lib*.so.$(version) + strip --strip-unneeded debian/tmp/usr/lib/lib*.so.$(soversion) + cp debian/shlibs debian/shlibs.local dpkg-shlibdeps debian/tmp/usr/bin/yaz-client debian/tmp/usr/bin/yaz-ztest dpkg-gencontrol chown -R root.root debian/tmp