#*********************************************************************#
#                                                                     #
#                           Caml Light                                #
#                                                                     #
#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
#                                                                     #
#  Copyright 2002 Institut National de Recherche en Informatique et   #
#  en Automatique.  Distributed only by permission.                   #
#                                                                     #
#*********************************************************************#

# $Id: Makefile,v 1.3 2003/01/13 14:45:40 weis Exp $

all:
	echo '********************************************************'; \
	echo; \
	echo; \
	echo 'To test ledit, enter'; \
	echo; \
	echo '  ledit -c camllight'; \
	echo ; \
	echo '(you should then use the emacs usual control keys.)'; \
	echo ; \
	echo '********************************************************'

.SUFFIXES:
.SUFFIXES: .ml .mli .zo .mll .mly

.ml.zo:
	$(CAMLC) -c $<

.mll.zo:
	$(CAMLLEX) $<
	$(CAMLC) -c $*.ml

.mly.zo:
	$(CAMLYACC) $<
	$(CAMLC) -c $*.mli
	$(CAMLC) -c $*.ml

.mly.cmi:
	$(CAMLYACC) $<
	$(CAMLC) -c $*.mli

.mll.ml:
	$(CAMLLEX) $<

.mly.ml:
	$(CAMLYACC) $<

clean:
	/bin/rm -f a.out *.z[xio] *~ *.o
	/bin/rm -f test?
