#*********************************************************************#
#                                                                     #
#                           Objective Caml                            #
#                                                                     #
#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
#                                                                     #
#  Copyright 2000 Institut National de Recherche en Informatique et   #
#  en Automatique.  All rights reserved.  This file is distributed    #
#  under the terms of the GNU Library General Public License.         #
#                                                                     #
#*********************************************************************#

TEXSOURCES = graphps.tex
GENERATED = graphps.image.tex euro.eps
SOURCES = euro.ml
TEXINPUT = /usr/share/texmf/tex/latex//:$(TEXINPUTS)
LATEX = TEXINPUTS=$(TEXINPUT); latex
HEVEA = TEXINPUTS=$(TEXINPUT); hevea
IMAGEN = imagen -extra "ppmquant 255"

RM = /bin/rm -f

all:	euro.eps
	$(LATEX) euro.tex
	$(LATEX) graphps.tex
	$(HEVEA) -fix macro.hva graphps
	dvips -o graphps.ps graphps.dvi

euro.eps:
	cd ..; make; cd test; make; cp -p euro.eps ../doc

clean:
	cd ../test; make clean
	- $(RM) *.dvi *.ps *.aux *.log
	- $(RM) *.haux *.hind *.hidx
	- $(RM) *.cm[aiox]* *~ .*~ #*#
	- $(RM) *.o
	- $(RM) $(GENERATED)

