#	This file is part of the Concurrent Versions System CVS.
#	Written by Dick Grune, Vrije Universiteit, Amsterdam.
#	$Header: Makefile,v 3.2 89/09/28 17:42:41 dick Exp $

CVSBIN =	/home/top/dick/bin#	# where to install the CVS programs
CVSLIB =	/home/top/dick/lib/cvs#	# where to install the CVS auxiliaries
CVSMAN =	/home/top/dick/man#	# where to install the CVS manual
RCSBIN =	/usr/local/bin#		# where the RCS binaries reside

INF =	READ_ME Makefile Install cvs.1 historian.1
PRG =	AE CM CV DF GC HR LS NR RC RM RV UV  REP LAR LAU LCK
AUX =	BE.aux CA.aux CC.aux CI.aux CS.aux EF.aux FN.aux HN.aux LR.aux MF.aux \
	ND.aux NR.aux OP.aux RG.aux SC.aux SL.aux VN.aux VT.aux WL.aux
HIST =	historian hist1 hist2 coALL

what:
	@echo "Call is: make [ install | install.hist | .distr | shar | clean ]"

install:	install.files $(CVSMAN)/cvs.1

install.files:
	for F in $(PRG); do ./Install $$F $(CVSBIN) $(CVSLIB) $(RCSBIN); done
	for F in $(AUX); do ./Install $$F $(CVSLIB) $(CVSLIB) $(RCSBIN); done

install.hist:
	for F in $(HIST); do ./Install $$F $(CVSBIN) $(CVSLIB) $(RCSBIN); done
	cp historian.1 $(CVSMAN)/historian.1

$(CVSMAN)/cvs.1:	cvs.1
	cp cvs.1 $(CVSMAN)/cvs.1

# create a (composite) shar file shar[12]
shar:	shar1 shar2
SHAR1 =	$(INF) $(AUX) $(HIST)
SHAR2 =	$(PRG)

shar1:	$(SHAR1) Makefile
	shar $(SHAR1) >shar1

shar2:	$(SHAR2) Makefile
	shar $(SHAR2) >shar2

.distr:	Makefile
	echo $(SHAR1) $(SHAR2) | tr ' ' '\012' >.distr

clean:
	rm -f shar[12] .distr

