#* 
#* ------------------------------------------------------------------
#* Role PlayingDB V2.0 by Deepwoods Software
#* ------------------------------------------------------------------
#* Makefile.in - Makefile input
#* Created by Robert Heller on Tue Jul 13 18:32:13 1999
#* ------------------------------------------------------------------
#* Modification History: 
#* $Log$
#* ------------------------------------------------------------------
#* Contents:
#* ------------------------------------------------------------------
#*  
#*     Role Playing DB -- A database package that creates and maintains
#* 		       a database of RPG characters, monsters, treasures,
#* 		       spells, and playing environments.
#* 
#*     Copyright (C) 1995,1998,1999  Robert Heller D/B/A Deepwoods Software
#* 			51 Locke Hill Road
#* 			Wendell, MA 01379-9728
#* 
#*     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.
#* 
#*  
#* 
RPGScripts = StdMenuBar.tcl RPGEdCharacter.tcl RPGEdMonster.tcl RPGEdSpell.tcl \
             RPGEdTreasure.tcl RPGEdTrickTrap.tcl RPGEdDressing.tcl \
	     RPGEdMap.tcl RPGEdSpace.tcl RPGHelp.tcl
#-------------------------------------------------
prefix     = @prefix@
exec_prefix= @exec_prefix@
RPG_LIB = $(prefix)/lib/RolePlaying-2.0/Scripts
BIN_DIR        = $(exec_prefix)/bin
LIB_DIR        = $(exec_prefix)/lib
INCLUDE_DIR    = $(prefix)/include/RolePlaying-2.0
HELP_DIR       = $(prefix)/lib/RolePlaying-2.0/Help
DOC_DIR        = $(prefix)/doc/RolePlaying-2.0
INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@
TCLSH		= @TCL_EXEC_PREFIX@/bin/tclsh@TCL_VERSION@

all: pkgIndex.tcl

pkgIndex.tcl : $(RPGScripts)
	echo "pkg_mkIndex . $(RPGScripts)" | $(TCLSH)

install: pkgIndex.tcl Main.tcl DeepwoodsBanner.gif $(RPGScripts)
	for i in $^; do $(INSTALL_DATA) $$i $(RPG_LIB); done;

clean:
	-rm pkgIndex.tcl

tarballfiles: Makefile.in pkgIndex.tcl Main.tcl DeepwoodsBanner.gif $(RPGScripts)
	cp /dev/null .tarballfiles
	for i in $^; do echo $(TDIR)/$$i >>.tarballfiles; done
