git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ocaml: Generate ocamldoc.
[libguestfs.git]
/
ocaml
/
Makefile.am
diff --git
a/ocaml/Makefile.am
b/ocaml/Makefile.am
index
7008166
..
252a337
100644
(file)
--- a/
ocaml/Makefile.am
+++ b/
ocaml/Makefile.am
@@
-25,8
+25,10
@@
generator_built = \
EXTRA_DIST = \
$(generator_built) \
EXTRA_DIST = \
$(generator_built) \
+ .depend \
guestfs_c.c guestfs_c.h \
guestfs_c.c guestfs_c.h \
- .depend META.in \
+ html/.gitignore \
+ META.in \
run-bindtests \
t/*.ml
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 $<
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 \
TESTS_ENVIRONMENT = \
LD_LIBRARY_PATH=$(top_builddir)/src/.libs \
LIBGUESTFS_PATH=$(top_builddir)/appliance \
@@
-66,12
+77,14
@@
TESTS = run-bindtests \
t/guestfs_010_basic \
t/guestfs_070_threads \
t/guestfs_080_optargs \
t/guestfs_010_basic \
t/guestfs_070_threads \
t/guestfs_080_optargs \
+ t/guestfs_400_events \
t/guestfs_400_progress
noinst_DATA += bindtests \
t/guestfs_005_load \
t/guestfs_010_basic \
t/guestfs_070_threads \
t/guestfs_080_optargs \
t/guestfs_400_progress
noinst_DATA += bindtests \
t/guestfs_005_load \
t/guestfs_010_basic \
t/guestfs_070_threads \
t/guestfs_080_optargs \
+ t/guestfs_400_events \
t/guestfs_400_progress
bindtests: bindtests.cmx mlguestfs.cmxa
t/guestfs_400_progress
bindtests: bindtests.cmx mlguestfs.cmxa
@@
-94,6
+107,10
@@
t/guestfs_080_optargs: t/guestfs_080_optargs.cmx mlguestfs.cmxa
mkdir -p t
$(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
mkdir -p t
$(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
+t/guestfs_400_events: t/guestfs_400_events.cmx mlguestfs.cmxa
+ mkdir -p t
+ $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
+
t/guestfs_400_progress: t/guestfs_400_progress.cmx mlguestfs.cmxa
mkdir -p t
$(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@
t/guestfs_400_progress: t/guestfs_400_progress.cmx mlguestfs.cmxa
mkdir -p t
$(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . -package unix -linkpkg mlguestfs.cmxa $< -o $@