diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-07-17 10:29:47 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-07-17 11:23:47 +0100 |
commit | cd00157efca760ce043dcae216d921841dd25ff9 (patch) | |
tree | 2fd240b4fa6cbd90d817be3b9c91941b21afcdd8 /ocaml | |
parent | e72592563c0be15f1b2400e15205d5e803875685 (diff) | |
download | libguestfs-cd00157efca760ce043dcae216d921841dd25ff9.tar.gz libguestfs-cd00157efca760ce043dcae216d921841dd25ff9.tar.xz libguestfs-cd00157efca760ce043dcae216d921841dd25ff9.zip |
ocaml: Generate ocamldoc.
Also includes improvements to the OCaml documentation.
Diffstat (limited to 'ocaml')
-rw-r--r-- | ocaml/Makefile.am | 13 | ||||
-rw-r--r-- | ocaml/html/.gitignore | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index c07b9c57..252a3370 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -25,8 +25,10 @@ generator_built = \ EXTRA_DIST = \ $(generator_built) \ + .depend \ guestfs_c.c guestfs_c.h \ - .depend META.in \ + html/.gitignore \ + META.in \ run-bindtests \ t/*.ml @@ -56,6 +58,15 @@ guestfs_c.o: guestfs_c.c guestfs_c_actions.o: guestfs_c_actions.c $(CC) $(AM_CPPFLAGS) $(CFLAGS) -fPIC -Wall -c $< +if HAVE_OCAMLDOC + +noinst_DATA += html/index.html + +html/index.html: guestfs*.mli guestfs*.ml + mkdir -p html + -$(OCAMLDOC) -d html -html $^ +endif + TESTS_ENVIRONMENT = \ LD_LIBRARY_PATH=$(top_builddir)/src/.libs \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ diff --git a/ocaml/html/.gitignore b/ocaml/html/.gitignore new file mode 100644 index 00000000..e9f06bdd --- /dev/null +++ b/ocaml/html/.gitignore @@ -0,0 +1,2 @@ +style.css +*.html |