#!/usr/bin/make -f # Sample debian.rules file - for GNU Hello (1.3). # Copyright 1994,1995 by Ian Jackson. # I hereby give you perpetual unlimited permission to copy, # modify and relicense this file, provided that you do not remove # my name from the file itself. (I assert my moral right of # paternity under the Copyright, Designs and Patents Act 1988.) # This file may have to be extensively modified # Copyright 1996 by Kevin Dalley # CC = gcc CFLAGS = -O2 LDFLAGS = -s package = findutils build: $(checkdir) ./configure --prefix=/usr $(MAKE) localstatedir='$(prefix)/var/lib/locate' \ libexecdir=/usr/lib/locate \ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" cd doc ; makeinfo find.texi touch build clean: $(checkdir) -rm -f build -$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean -rm -rf *~ debian/tmp debian/*~ debian/files* binary-indep: checkroot build $(checkdir) # There are no architecture-independent files to be uploaded # generated by this package. If there were any they would be # made here. binary-arch: checkroot build $(checkdir) -rm -rf debian/tmp install -d debian/tmp debian/tmp/DEBIAN install -d debian/tmp/usr/doc/$(package) install -d debian/tmp/usr/bin install -d debian/tmp/usr/lib install -d debian/tmp/usr/lib/locate install -d debian/tmp/etc install -d debian/tmp/etc/cron.daily install -d debian/tmp/var install -d debian/tmp/var/lib install -d debian/tmp/var/lib/locate install debian/{postinst,prerm,preinst} debian/tmp/DEBIAN/. install -m 0644 debian/conffiles debian/tmp/DEBIAN/. install debian/cron.find debian/tmp/etc/cron.daily/find install -m 0644 debian/updatedb.conf debian/tmp/etc/updatedb.conf $(MAKE) prefix=`pwd`/debian/tmp/usr \ localstatedir=`pwd`/debian/tmp/var/lib/locate \ libexecdir=`pwd`/debian/tmp/usr/lib/locate \ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ INSTALL_PROGRAM='install -c' \ install gzip -9v debian/tmp/usr/info/* gzip -9v debian/tmp/usr/man/man[15]/* install -m 0644 debian/copyright debian/tmp/usr/doc/$(package)/. install -m 0644 debian/changelog \ debian/tmp/usr/doc/$(package)/changelog.Debian gzip -9v debian/tmp/usr/doc/$(package)/changelog.Debian for file in ChangeLog INSTALL NEWS README TODO; do \ install -m 0644 $$file \ debian/tmp/usr/doc/$(package);\ gzip -9v debian/tmp/usr/doc/$(package)/$$file;\ done install -m 0644 debian/README.debian \ debian/tmp/usr/doc/$(package) dpkg-shlibdeps debian/tmp/usr/bin/{find,locate,xargs} dpkg-gencontrol dpkg --build debian/tmp .. define checkdir test -f find/find.c -a -f debian/rules endef # Below here is fairly generic really binary: binary-indep binary-arch source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false checkroot: $(checkdir) test root = "`whoami`" .PHONY: binary binary-arch binary-indep clean checkroot