prefix=/usr/local
sysconfdir=${prefix}/etc
bindir=${prefix}/bin
DESTDIR=
files= SPECS CHANGELOG COPYING INSTALL Makefile README katadd katalogrc katls katsch

all:
	@echo "Type 'make install' to install katalog in system."
	@echo "Type 'make uninstall' to remove katalog from system."

install:
	install -d $(DESTDIR)${bindir} $(DESTDIR)${sysconfdir}
	install -m 644 -o root -g wheel katalogrc $(DESTDIR)${sysconfdir}
	install -m 755 -o root -g wheel katsch $(DESTDIR)${bindir}
	install -m 755 -o root -g wheel katls $(DESTDIR)${bindir}
	install -m 755 -o root -g wheel katadd $(DESTDIR)${bindir}

uninstall:
	rm $(DESTDIR)${sysconfdir}/katalogrc
	rm $(DESTDIR)${bindir}/katsch
	rm $(DESTDIR)${bindir}/katls
	rm $(DESTDIR)${bindir}/katadd

pkg:
	ver=`./katsch -V | cut -d ' ' -f 2` ; mkdir katalog-$$ver ; \
	cp -pR $(files) katalog-$$ver/ ; rm -rf katalog-$$ver/SPECS/CVS ; \
	tar -f - -c katalog-$$ver/ | gzip > katalog-$$ver.tar.gz ; rm -rf katalog-$$ver/ ; \
	gpg -sba katalog-$$ver.tar.gz

# $Id: Makefile,v 1.5 2002/06/13 19:52:01 eaquer Exp $
