/* $Id: Imakefile,v 1.4 1993/10/14 14:36:07 kon Exp $ */
#include "../../../../Canna.conf"

  CANNAROOT = ../../../..
  JLATEXCMD = latex
  DVI2PSCMD = dvi2ps

   SRCS = cannaindex.c

default: canna.dvi

AllTarget()

ConvertPathName(canna.tex,canna-dist.tex)
SingleProgramTarget(cannaindex,cannaindex.o,,)
DependTarget()

canna.dvi: canna.tex cannaindex
	echo 'DUMMY' > candex.tex
	$(JLATEXCMD) canna.tex
	./cannaindex canna.idx > candex.tex
	$(JLATEXCMD) canna.tex

canna.ps: canna.dvi
	$(DVI2PSCMD) canna.dvi > canna.ps

clean::
	-$(RM) *.aux *.idx *.lof *.log *.lot *.toc

clean::
	$(RM) canna.tex canna.dvi canna.ps candex.tex
