#* 
#* ------------------------------------------------------------------
#* Role PlayingDB V2.0 by Deepwoods Software
#* ------------------------------------------------------------------
#* Makefile.in - Makefile input
#* Created by Robert Heller on Tue Jul 13 18:32:16 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.
#* 
#*  
#* 
HelpFiles = toc.hh intro.hh common.hh main.hh character.hh monster.hh spell.hh \
	    dressing.hh tricktrap.hh treasure.hh map.hh space.hh Help.hh GNU.hh \
	    Tutorial.hh Widgets.hh
HelpIndex = hh.index
HelpIndexBuilder = HelpIndexBuild.tcl
IndexHHBuilder = IndexHH.tcl
IndexHH = index.hh
PPMFiles = ChRoll.ppm Character.ppm CreateMap.ppm CreateSpace.ppm Dressing.ppm \
	   EditMenu.ppm FileMenu.ppm HelpMenu.ppm Main.ppm Map.ppm MenuBar.ppm \
	   Monster.ppm NewExit.ppm NewItem.ppm Space.ppm Spell.ppm Treasure.ppm \
	   TrickTrap.ppm VisitExit.ppm


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: $(HelpIndex) $(IndexHH)

$(HelpIndex): $(HelpFiles)
	$(TCLSH) $(HelpIndexBuilder) $(HelpIndex) $(HelpFiles)

$(IndexHH) : $(HelpIndex)
	$(TCLSH) $(IndexHHBuilder) $(HelpIndex) $(IndexHH)

install: $(HelpFiles) $(HelpIndex) $(IndexHH) $(PPMFiles)
	for i in $^; do $(INSTALL_DATA) $$i $(HELP_DIR); done;

clean:
	rm -f $(HelpIndex)

tarballfiles: Makefile.in $(HelpFiles) $(HelpIndex) $(IndexHH) \
	$(HelpIndexBuilder) $(IndexHHBuilder) $(PPMFiles)
	cp /dev/null .tarballfiles
	for i in $^; do echo $(TDIR)/$$i >>.tarballfiles; done

