#
#  Eden's TCL Extentions To Eggdrop
#  This is the Makefile for installing the ETETE libraries
#  Edit the top of this file before attempting to compile!
#

# Binaries
CP = cp -f
MV = mv -f


# Directories -- EDIT THIS PART!!!!!!
SCRIPTDIR = /bots/mybot/scripts
HELPDIR = /bots/mybot/help

# This is the name of your bot's config file.  If you define this, the
# Makefile will try to automatically add the appropriate TCL commands to the
# end of your config file to load the libraries.

CONFIGFILE = /bots/mybot/egg.config





# STOP HERE -- DO NOT EDIT ANYTHING BELOW THIS LINE!!!!!!!! 
# STOP HERE -- DO NOT EDIT ANYTHING BELOW THIS LINE!!!!!!!! 
# STOP HERE -- DO NOT EDIT ANYTHING BELOW THIS LINE!!!!!!!! 



all: etete

etete:	escripts ehelp econfig
	@echo "ETETE is installed.  Now \"/msg YourBot REHASH <pass>\""


escripts:	
	-@$(CP) scripts/* $(SCRIPTDIR)

ehelp:	
	-@/bin/sh -c 'if [ "`grep -i defence $(HELPDIR)/help`" = "" ] ; then mv -f $(HELPDIR)/help $(HELPDIR)/help~; fi'
	-@/bin/sh -c 'if [ "`grep -i nick $(HELPDIR)/invite`" = "" ] ; then mv -f $(HELPDIR)/invite $(HELPDIR)/invite~; fi'
	-@$(CP) help/* $(HELPDIR)

econfig:	
	-@/bin/sh -c 'if [ "`grep misc.tcl $(CONFIGFILE)`" = "" ] ; then echo "source $(SCRIPTDIR)/misc.tcl" >> $(CONFIGFILE); fi'
	-@/bin/sh -c 'if [ "`grep defence.tcl $(CONFIGFILE)`" = "" ] ; then echo "source $(SCRIPTDIR)/defence.tcl" >> $(CONFIGFILE); fi'
	-@/bin/sh -c 'if [ "`grep master.tcl $(CONFIGFILE)`" = "" ] ; then echo "source $(SCRIPTDIR)/master.tcl" >> $(CONFIGFILE); fi'


