# ----------------------------------------------------------------------------
# INSTALLATION SETTINGS
# ----------------------------------------------------------------------------
MAIN = xdvipresent
# Set this to a directory where LATeX finds style files
# E.g., for typical Linux machines:
# STYDIR = /usr/share/texmf/tex/latex/local
# For clip machines:
STYDIR = /home/clip/latex/styles/other
# For SunOS clip machines:
#STYDIR = /usr/local/lib/texmf/tex/local
# 
# Uncomment this line if you are using teTeX 
# (this is needed in order to recompute the locations of style files)
REHASH = texhash
#
# Set this to a directory that is in user's PATHs
BINDIR = /usr/local/bin
# 
# Define this to be the permissions for executables and data files
EXECMODE = 775
DATAMODE = 664
# ----------------------------------------------------------------------------

install: clean
	@echo "*** -------------------------------------------------------"
	@echo "*** Installing style file, images, and script"
	@echo "*** -------------------------------------------------------"
	-chmod $(DATAMODE) *.cls
	-cp -p *.cls $(STYDIR)
	-chmod $(DATAMODE) images/*
	-cp -p images/* $(STYDIR)
	-chmod $(EXECMODE) $(MAIN)
	-cp -p $(MAIN) $(BINDIR)
	@echo "*** -------------------------------------------------------"
	@echo "*** Updating TeX libraries -- if this fails redo as root!  "
	@echo "*** -------------------------------------------------------"
	-$(REHASH)
	@echo "*** -------------------------------------------------------"
	@echo "*** You may now want to install the manuals "
	@echo "*** (do gmake install in 'doc' dir) "
	@echo "*** -------------------------------------------------------"

clean:
	-cd doc; $(MAKE) clean
	-rm -f *~ *.dvi *.aux *.log *.toc *.asr *.itf

realclean: clean
	-cd doc; $(MAKE) braveclean

# ----------------------------------------------------------------------------
