 ###########################################################################
 ##                                                                       ##
 ##                Centre for Speech Technology Research                  ##
 ##                     University of Edinburgh, UK                       ##
 ##                    Copyright (c) 1994,1995,1996                       ##
 ##                        All Rights Reserved.                           ##
 ##                                                                       ##
 ##  Permission to use, copy, modify, distribute this software and its    ##
 ##  documentation for research, educational and individual use only, is  ##
 ##  hereby granted without fee, subject to the following conditions:     ##
 ##   1. The code must retain the above copyright notice, this list of    ##
 ##      conditions and the following disclaimer.                         ##
 ##   2. Any modifications must be clearly marked as such.                ##
 ##   3. Original authors' names are not deleted.                         ##
 ##  This software may not be used for commercial purposes without        ##
 ##  specific prior written permission from the authors.                  ##
 ##                                                                       ##
 ##  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ##
 ##  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ##
 ##  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ##
 ##  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS 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.                                                       ##
 ##                                                                       ##
 ###########################################################################
 ##                                                                       ##
 ##                 Author: Richard Caley (rjc@cstr.ed.ac.uk)             ##
 ##                   Date: June 1997                                     ##
 ## --------------------------------------------------------------------- ##
 ## Makefile for bin directory, just links to things in the main and      ##
 ## scripts directories.                                                  ##
 ##                                                                       ##
 ###########################################################################

TOP=..
DIRNAME=bin
FILES= Makefile
ALL = relink

include $(TOP)/config/default_make_rules

relink:
	@echo
	@echo -n "Remove Links:"
	@for i in [a-z]* ;\
		do \
		if [ -x "$$i" ] ; then echo -n " $$i" ; /bin/rm -f "$$i" ; fi ;\
	done
	@echo
	@echo
	@echo -n "Link:"
	@for i in ../main/[a-z]* ;\
		do \
		b=`basename "$$i"` ;\
                if [ -d "$$i" ] ; then true ; else \
		if [ -x "$$i" ] ; then echo -n " $$b"; ln -s "$$i" "$$b" ; fi ; fi ;\
	done
	@for i in ../scripts/[a-z]*.sh ;\
		do \
		if [ ! -f "$$i" ] ; then continue ; fi ;\
		b=`basename "$$i" .sh` ;\
		echo -n " $$b"; ln -s "$$i"  "$$b" ;\
		chmod +x "$$b" ;\
	done
	@for i in ../scripts/[a-z]*.prl ;\
		do \
		if [ ! -f "$$i" ] ; then continue ; fi ;\
		b=`basename "$$i" .prl` ;\
		echo -n " $$b"; ln -s "$$i"  "$$b" ;\
		chmod +x "$$b" ;\
	done
	@echo
	@echo
