#sccs	"@(#)fndetc:Makefile	1.15"
include $(MAKEINC)/Makepre.h
# This directory contains the source for termcap.  There is a more 
# elaborate method of controlling termcap, which can be found in 
# source archives of release 3.0 and before (non-SCCS).  The directory 
# is $SRC/cmd/vi/termcap.db

SUBDIRS = convert

FILES = \
	.badlist \
	.cleanup \
	.drvload \
	.extra \
	.firstrc \
	.fixedlist \
	.lineone \
	.linetwo \
	.lpstartsched \
	.modem \
	.rs232 \
	.version \
	TZ \
	checklist \
	cleanup.wk \
	clockupd.wk \
	gettydefs \
	group \
	inittab \
	ioctl.syscon \
	magic \
	mnttab \
	motd \
	mountable \
	namesys \
	printers \
	profile \
	pwcntl \
	shutdown \
	termcap \
	unmountable

all: comall
#	if pwcntl changes, watch out for sccs id keywords created by the
#	encode program.
	decode pwcntl_ pwcntl
	echo $(VERSION) > .version

install: $(FILES) cominstall
	@for i in $(FILES); do echo installing $$i...; $(INSTALL) -i$(EXITFLAG) $$i $(INSDIR) $(PROTOFILE); done
	$(INSTALL) -i$(EXITFLAG) rc%/etc $(INSDIR) $(PROTOFILE)
	$(INSTALL) -i$(EXITFLAG) passwd%/etc $(INSDIR) $(PROTOFILE)

clean: comclean
	rm -f pwcntl .version

clobber: comclobber
	rm -f pwcntl .version

includes:

populate: $(SUBDIRS)
	UNIT=`cat .unit`; export UNIT; \
	for D in $(SUBDIRS); \
	do (cd $$D; echo "$$UNIT/$$D" >.unit; echo "** $$D **:"; getunit); \
	done

$(SUBDIRS):
	mkdir $@

include $(MAKEINC)/Makepost.h
