#
# 
# Copyright (c) 1993 The RARE Association 
# 
# All Rights Reserved
# 
# Permission to use, copy, modify, and distribute this software and its 
# documentation for any purpose and without fee is hereby granted, 
# provided that the above copyright notice appear in all copies and that
# both that copyright notice and this permission notice appear in 
# supporting documentation, and that the name of the author not be
# used in advertising or publicity pertaining to distribution of the
# software without specific, written prior permission.  
# 
# THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
# AUTHOR BE LIABLE FOR ANY SPECIAL, 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.
#
#
#	$RCSfile: Makefile,v $
#	$Revision: 0.12 $
#	$Author: tony $
#	$Date: 1993/12/17 11:54:37 $
#
#
SRC=		ciscot.pl 
MAN=		ciscot.1

BINDIR=		/usr/local/bin
PERL=		/usr/local/bin/perl
MANDIR=		/usr/local/man
MANEXT=		1
DEFROUTER=	router.foo.net
SHAR=		tar cvf dist.tar

OBJ=		ciscot
DIST=		$(SRC) $(MAN) Makefile README INSTALL commands

ciscot: ciscot.pl Makefile $(DEP)
	sed     -e 's:DEFROUTER:$(DEFROUTER):'  \
		-e 's:PERL:$(PERL):'            \
		< ciscot.pl > $@
	chmod 755 $@

install: $(OBJ) Makefile $(MAN) $(DEP)
	-install -m 755 $(OBJ) $(BINDIR)
	-install -m 644 ${MAN} ${MANDIR}/man${MANEXT}/${MAN}

dist.tar: $(DIST) 
	$(SHAR) $(DIST)
	

dist: dist.tar

all: ciscot dist

man: $(MAN)
	-install -m 644 ${MAN} ${MANDIR}/man${MANEXT}/${MAN}

clean:
	-rm -f core a.out dist.shar *.o ,* $(OBJ)


