# $Header: /cvs/Darwin/Services/bind/bind/contrib/decwrl/Makefile.datadir,v 1.1.1.2 2001/01/31 03:58:37 zarzycki Exp $

HOSTS=		/usr/local/adm/hosts/localhosts
PID=		/etc/named.pid
NAMED=		/etc/named
ARCH=		mips vax
ZONES=		16.1.zone 16.10.zone 16.2.zone 16.3.zone 16.4.zone 16.5.zone \
		decpa.zone

rinstall:	version $(PID) paservers.db \
			$(ARCH) named.boot.secondary Makefile
		-set -x +e; \
		for arch in $(ARCH); do rdist -d ARCH=$$arch \
			-d SERVERS="( `tr '\012' ' ' < paservers.$$arch`)"; \
		done
		echo `date` `who am i` >> rinstall

.PRECIOUS: rinstall

paservers.db: paservers
		./mkservers paservers

$(PID):	version hesiod
		-kill `cat $(PID)`
		$(NAMED)

version:	$(HOSTS) $(ZONES) paservers mkdb
		./mkdb $(HOSTS)
