# Copyright (C) 1998-2000  Internet Software Consortium.
# 
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# 
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.

# $Id: Makefile.in,v 1.21.2.6 2000/07/27 01:48:49 gson Exp $

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_VERSION@

SUBDIRS =	make lib bin
TARGETS =
DISTFILES =	CHANGES COPYRIGHT Makefile.in README \
		acconfig.h aclocal.m4 config.guess config.h.in config.h.win32 \
		config.status.win32 config.sub configure configure.in \
		isc-config.sh.in install-sh libtool.m4 ltconfig ltmain.sh \
		lib make contrib \
		version
DOCDISTFILES =	arm draft misc rfc
DOCMANDISTFILES = bin dnssec
BINDISTFILES =	Makefile.in dig dnssec named nsupdate rndc tests

@BIND9_MAKE_RULES@

distclean::
	rm -f config.cache config.h config.log config.status TAGS
	rm -f libtool isc-config.sh
	rm -f util/conf.sh

cleandir: distclean

install:: isc-config.sh
	${INSTALL_PROGRAM} isc-config.sh ${DESTDIR}${bindir}

kit: kitclean
	mkdir bind-${VERSION}
	@(cd bind-${VERSION}; for i in ${DISTFILES}; do ln -s ../$$i $$i; done)
	mkdir bind-${VERSION}/doc
	@(cd bind-${VERSION}/doc; for i in ${DOCDISTFILES}; do \
		ln -s ../../doc/$$i $$i; done)
	mkdir bind-${VERSION}/doc/man
	@(cd bind-${VERSION}/doc/man; for i in ${DOCMANDISTFILES}; do \
		ln -s ../../../doc/man/$$i $$i; done)
	mkdir bind-${VERSION}/bin
	@(cd bind-${VERSION}/bin; for i in ${BINDISTFILES}; do \
		ln -s ../../bin/$$i $$i; done)
	gtar -c -v -z -h --exclude '*CVS*' -f bind-${VERSION}.tar.gz \
		bind-${VERSION}
	rm -rf bind-${VERSION}

kitclean: distclean
	rm -rf bind-${VERSION}

tags:
	rm -f TAGS
	find lib bin -name "*.[ch]" -print | @ETAGS@ -
