# (C) Copyright International Business Machines Corporation 23 January 
# 1990.  All Rights Reserved. 
#  
# See the file USERAGREEMENT distributed with this software for full 
# terms and conditions of use. 
# Filename: Makefile
# Author: Andy Lowry
# SCCS Info: @(#)Makefile	1.4 3/13/90

# Install Hermes front-end scripts in the appropriate local binaries
# directory.  Invoke with SYSBINDIR defined as the destination
# directory, e.g. 'make install SYSBINDIR=/usr/local/bin'

SCRIPTS =	hermes hermi

# Following must be overridden
SYSBINDIR =	!not given!

all:
	chmod +x $(SCRIPTS)

install: all
	-@if [ "$(SYSBINDIR)" = "!not given!" ] ; then $(MAKE) usage ; \
	   else make SYSBINDIR=$(SYSBINDIR) go ; fi
go:
	cp $(SCRIPTS) $(SYSBINDIR)

usage:
	@echo "You must supply a value for SYSBINDIR, as in:"
	@echo 
	@echo "    make install SYSBINDIR=/usr/local/bin"
	@echo
	@echo "The scripts will be installed in the directory given"
