######################################################################
#
#  Name .................................... LiDIA/doc/manual makefile
#
#  Architecture : sparc7, sparc8, mips, alpha, rs6000, hp9000/7xx,os/2
#  Compiler     :
#  Flags        :
#  Program Flags:
#  Author       : Thomas Papanikolaou (TP) & Stefan Neis
#  Release      : 1.0
#  Last Change  : Sat Apr 29 23:15:12 MET DST 1995
#  Copyright    : by the LiDIA Group, 1995
#

#
# include the configuration file
#

include ../../config/CONFIG

#
#
#

all:    dvi # ps

phase1:
	touch lidiaman.ind
	$(LATEX) lidiaman.tex
	$(LATEX) lidiaman.tex

phase2:
	.$(DIRSEP)make_lidia_index lidiaman.idx
	$(MAKEINDEX) -s lidia.ist -o lidiaman.ind lidiaman.idx

phase3:
	$(LATEX) lidiaman.tex

dvi:    phase1 phase2 phase3
#       $(CP) lidiaman.dvi ../dvi

ps:     lidiaman.dvi
	$(DVIPS) -o lidiaman.ps lidiaman.dvi
	$(CP) lidiaman.ps ../ps

#
# make clean
#

clean:
	-$(RM) *.ilg *.log *.aux *.toc *.idx *.ind *.org

#
# make veryclean
#

veryclean:      clean
	-$(RM) lidiaman.dvi lidiaman.ps

#
# make distclean
#

distclean:      veryclean

#
# end of makefile
#
