#
# Makefile - SaVi tcl directory. Run top-level Makefile instead.
#
# $Id: Makefile,v 1.9 2006/07/17 20:54:27 lloydwood Exp $

       SHELL = /bin/sh
          RM = /bin/rm -f

  TCL_SRCS = init.tcl main.tcl utils.tcl load.tcl save.tcl \
		coverage.tcl coverage_size.tcl edit.tcl fisheye.tcl params.tcl \
		random.tcl about.tcl oe.tcl constellations.tcl \
	        rosette.tcl empty.tcl


     TCLSH = tclsh

# FreeBSD will require this uncommented
# TCLSH = tclsh8.4

# older Cygwin and Insight Tcl may require this uncommented
# TCLSH = cygtclsh80.exe

   MKINDEX = mkindex.tcl
OTHER_SRCS = $(TCL_SRCS) tclIndex

 CLEAN_FILES = tclIndex

all: buildtclIndex

buildtclIndex: $(MKINDEX) $(TCL_SRCS)
	$(TCLSH) $(MKINDEX)

$(MKINDEX): Makefile
	echo "auto_mkindex . $(TCL_SRCS)" > $(MKINDEX)

tarfilelist:
	@srcs="Makefile $(OTHER_SRCS) lib" ; \
	for i in $$srcs ; do \
	  echo "$(CURRENT_DIR)/$$i" >> $(TOP)/fileslist ; \
	done

clean:
	$(RM) *~ $(CLEAN_FILES)
