ocaml: Use ocamlfind to run ocamldoc.

Using 'ocamlfind ocamldoc' is much faster than running 'ocamldoc'
directly, because ocamlfind will run the native code program
'ocamldoc.opt' if it is available.

This change approximately halves the time taken to compile the ocaml
bindings.
This commit is contained in:
Richard W.M. Jones
2015-09-30 10:01:00 +01:00
parent 84598ef6f5
commit b482593a07

View File

@@ -98,7 +98,7 @@ if HAVE_OCAMLDOC
noinst_DATA += html/index.html
html/index.html: $(srcdir)/guestfs.mli $(srcdir)/guestfs.ml
-$(OCAMLDOC) -d html -html $^
-$(OCAMLFIND) ocamldoc -d html -html $^
endif