# Make file for bind/newconfig directory
#
# Things you might want to change.  Pass them in on the command line:
# ROOT - should point to the root where the commands will be installed
#        (e.g. /deliver/INETSVCS/indnetwk)

ROOT=

PRODUCTS=/usr/examples/bind/boot.cacheonly \
	/usr/examples/bind/boot.primary \
	/usr/examples/bind/boot.secondary \
	/usr/examples/bind/convert_rhosts \
	/usr/examples/bind/db.127.0.0 \
	/usr/examples/bind/db.15.19.8 \
	/usr/examples/bind/db.cache.arpa \
	/usr/examples/bind/db.cnd \
	/usr/examples/bind/resolv.conf \
	/usr/share/doc/rfc1034.Z \
	/usr/share/doc/rfc1035.Z \
	/usr/share/doc/rfc1535.Z

RFCS=  rfc1034 rfc1035 rfc1535

# Defaults file containing the shell, compiler options, etc
BUILDRULES=/source/INETSVCS/$(LOGNAME)/config/defaults

include ${BUILDRULES}

#Install database name
INSTALLDB=/source/INETSVCS/$(LOGNAME)/config/installdb

#Script called to parse the install deliverable
INSTALLSCPT=/source/INETSVCS/$(LOGNAME)/config/install_script

default: all

all: clean build install

clean:
	$(RM) -f rfc1034.Z rfc1035.Z rfc1535.Z

build: 

install: compress
	for file in $(PRODUCTS) ; do \
		$(INSTALLSCPT) $$file $(INSTALLDB) ;  \
	done

compress:
	for f in $(RFCS) ; do \
		if [ -f ./$$f ] ; then \
			compress <./$$f >$$f.Z ; \
		fi \
	done
