# 
# Copyright (C) 1993 Mark Boyns (boyns@sdsu.edu)
#
# This file is part of rplay.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

include ../Makefile.config

all:

install:
		@if [ -s rplay.servers ]; \
		then \
			path=`grep RPLAY_SERVERS ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(INSTALL) rplay.servers $$path"; \
			$(INSTALL) rplay.servers $$path; \
		fi; \
		if [ -s rplay.hosts ]; \
		then \
			path=`grep RPLAY_HOSTS ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(INSTALL) rplay.hosts $$path"; \
			$(INSTALL) rplay.hosts $$path; \
		fi; \
		if [ -s rplay.conf ]; \
		then \
			path=`grep RPLAY_CONF ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(INSTALL) rplay.conf $$path"; \
			$(INSTALL) rplay.conf $$path; \
		fi

remote-install:
		@if [ -s rplay.servers ]; \
		then \
			path=`grep RPLAY_SERVERS ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(REMOTE_INSTALL) rplay.servers $(REMOTE_HOST):$$path"; \
			$(REMOTE_INSTALL) rplay.servers $(REMOTE_HOST):$$path; \
		fi; \
		if [ -s rplay.hosts ]; \
		then \
			path=`grep RPLAY_HOSTS ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(REMOTE_INSTALL) rplay.hosts $(REMOTE_HOST):$$path"; \
			$(REMOTE_INSTALL) rplay.hosts $(REMOTE_HOST):$$path; \
		fi; \
		if [ -s rplay.conf ]; \
		then \
			path=`grep RPLAY_CONF ../include/conf.h | awk '{ print $$3 }' | tr -d '"'`; \
			echo "$(REMOTE_INSTALL) rplay.conf $(REMOTE_HOST):$$path"; \
			$(REMOTE_INSTALL) rplay.conf $(REMOTE_HOST):$$path; \
		fi
		
clean:
		$(RM) *~ *.bak *.orig

depend:

