   #########################################################################
   #                                                                       #
   # Copyright (C) 1993 by General Electric company.  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 General Electric not be used in   #
   # advertising or publicity pertaining to distribution of the            #
   # software without specific, written prior permission.                  #
   #                                                                       #
   # General Electric makes no representations about the suitability of    #
   # this software for any purpose.  It is provided ``as is''              #
   # without express or implied warranty.                                  #
   #                                                                       #
   # This work was supported in part by the DARPA Initiative in Concurrent #
   # Engineering (DICE) through DARPA Contracts MDA972-88-C-0047 and       #
   # MDA972-92-C-0027.                                                     #
   #                                                                       #
   # This work was supported in part by the Tri-Services Microwave and     #
   # Millimeter-Wave Advanced Computational Environment (MMACE) program    #
   # under Naval Research Laboratory contract N00014-92-C-2044.            #
   #                                                                       #
   #########################################################################


# File: Makefile
#
# Description: Makefile for Tk auxiliary library
#
# $Id: Makefile,v 1.9 1993/11/01 18:20:46 kennykb Exp $
# $Source: /homedisk/julius/u0/kennykb/src/tkauxlib_ship/RCS/Makefile,v $
# $Log: Makefile,v $
# Revision 1.9  1993/11/01  18:20:46  kennykb
# Beta release to be announced on comp.lang.tcl
#
# Revision 1.8  1993/10/27  15:52:49  kennykb
# Package for alpha release to the Net, and for MMACE 931101 release.
#
# Revision 1.7  1993/10/27  15:48:06  kennykb
# Fixed a glitch in TOPDIR and LIBDR
#
# Revision 1.6  1993/10/20  19:10:47  kennykb
# Alpha release #1 was thawed for bug fixes in tk 3.3.  Now frozen again at this
# point.
#
# Revision 1.5  1993/10/14  18:26:46  kennykb
# Added GE legal notice to top of file.
#
# Revision 1.4  1993/10/14  14:02:02  kennykb
# Alpha release #1 frozen at this point.
#
# Revision 1.3  1993/08/17  22:20:46  kennykb
# Added `nop.tcl' to the sources.
# l
#
# Revision 1.2  1993/06/03  17:18:13  kennykb
# Updated TCLSRCS dependency
#
# Revision 1.1  1993/06/03  15:35:04  kennykb
# Initial revision
#

# The TOPDIR directory is the root of the catalog tree of the more global
# system.  The TKAUXDIR directory is where the library is installed.  The
# usual setup is:
# TOPDIR
#	lib			Libraries
#		tkAux		Name of the package
#			init.tcl Initialization file
#			*.tcl	Tcl sources
#			*.xbm	X Window System bitmaps

TOPDIR = /projects/mmps

LIBDIR = $(TOPDIR)/all/lib
TKAUXDIR = $(LIBDIR)/tkAux

# Tcl source files that go in the library

TCLSRCS = \
	buttonAux.tcl \
	canvasAux.tcl \
	checkint.tcl \
	checkreal.tcl \
	choicebox.tcl \
	collapsible.tcl \
	debug.tcl \
	entryAux.tcl \
	errormessage.tcl \
	fileselect.tcl \
	focusAux.tcl \
	fraction.tcl \
	gensym.tcl \
	icon.tcl \
	init.tcl \
	int.tcl \
	labeledentry.tcl \
	modal.tcl \
	msort.tcl \
	nop.tcl \
	progress.tcl \
	require.tcl \
	scaleAux.tcl \
	setQ.tcl \
	static.tcl \
	textAux.tcl \
	tkerror.tcl \
	toplevelAux.tcl \
	trace.tcl \
	transient.tcl \
	widget.tcl \
	winlabel.tcl

# Icon bitmaps that go in the library

ICONS = \
	bomb.xbm \
	error.xbm \
	filltriangled.xbm \
	filltriangler.xbm \
	pagedown.xbm \
	pageup.xbm \
	rtfm.xbm \
	think.xbm \
	triangled.xbm \
	triangler.xbm

# Commands

# Note:	On system V systems, it may be necessary to replace `mkdir -p' with
# just plain `mkdir'.

# Note: `wish' must be a non-tclX version of wish; in the tcl version, 
# auto_mkindex is nowhere to be found.  This can be fixed if necessary

CHMOD = chmod
CP = cp
MKDIR = mkdir -p
RM = rm
WISH = wish

# Major targets:

all: tclIndex

install: all
	-$(MKDIR) $(TKAUXDIR)
	@for file in $(TCLSRCS) $(ICONS) tclIndex ; do \
		echo installing $$file; \
		$(RM) -f $(TKAUXDIR)/$$file; \
		$(CP) $$file $(TKAUXDIR)/$$file; \
		$(CHMOD) 444 $(TKAUXDIR)/$$file; \
	done

clean:
	$(RM) -f tclIndex

config:

tclIndex: $(TCLSRCS)
	echo 'auto_mkindex . {[a-z]*.tcl} ; destroy .' | $(WISH)
