Commit c95ccb7b authored by POTTIER Francois's avatar POTTIER Francois

A little cleanup in generator/Makefile.

parent 8a9da2d9
.PHONY: all clean
.PHONY: all clean mli
ML_DIRS := lex parsing tools typing utils
OCAMLBUILD := ocamlbuild -j 4 -classic-display \
......@@ -14,20 +14,9 @@ clean:
rm -f *.native
rm -f *~
# Note: to generate mli files, run the following command from ./_build:
# ocamlc -I typing -I utils -I tools -I parsing -I lex -I /usr/local/lib/ocaml/4.01.0/pprint/ -i normalize.ml > ../normalize.mli
# TODO: understand if myocamldeb is needed or not.
#####################################################################
doc: README.html
README.html: README.md
pandoc -o $@ $<
# An example of generating an .mli file from an .ml file.
# Use with [make BASE=foobar mli].
mli: all
cd _build && \
ocamlfind ocamlc $(addprefix -I ,$(ML_DIRS)) -package pprint \
-i $(BASE).ml > ../$(BASE).mli
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment