X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2FMakefile.am;h=bed1f929d89d437960be7e7716aa173aadf7d646;hb=0cc0e9e39f816c3f6174c74bf4cb136a5b4e13ea;hp=0f1c34961a6166fdde95b323ef23552dba718e67;hpb=70c2ffc39677a9f5eb6b2230cb9ca2606b2fd966;p=libguestfs.git diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index 0f1c349..bed1f92 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -19,12 +19,14 @@ EXTRA_DIST = \ guestfs.mli guestfs.ml \ guestfs_c.c guestfs_c.h guestfs_c_actions.c \ .depend META.in \ + bindtests.ml \ + run-bindtests \ t/*.ml SUBDIRS = examples -CLEANFILES = *~ *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so -CLEANFILES += t/*~ t/*.cmi t/*.cmo t/*.o t/*.a t/*.so +CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so +CLEANFILES += t/*.cmi t/*.cmo t/*.cmx t/*.o t/*.a t/*.so if HAVE_OCAML @@ -43,19 +45,30 @@ guestfs_c_actions.o: guestfs_c_actions.c $(CC) $(CFLAGS) -I$(OCAMLLIB) -I$(top_builddir)/src -fPIC -Wall -c $< TESTS_ENVIRONMENT = \ - LD_LIBRARY_PATH=$(abs_top_builddir)/src/.libs \ - LIBGUESTFS_PATH=$(abs_top_builddir) + LD_LIBRARY_PATH=$(top_builddir)/src/.libs \ + LIBGUESTFS_PATH=$(top_builddir)/appliance \ + $(VG) + +TESTS = run-bindtests \ + t/guestfs_005_load t/guestfs_010_launch t/guestfs_050_lvcreate \ + t/guestfs_060_readdir +noinst_DATA += bindtests \ + t/guestfs_005_load t/guestfs_010_launch t/guestfs_050_lvcreate \ + t/guestfs_060_readdir + +bindtests: bindtests.ml mlguestfs.cmxa + $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ -TESTS = t/guestfs_005_load t/guestfs_010_launch t/guestfs_050_lvcreate -noinst_DATA += $(TESTS) +t/guestfs_005_load: t/guestfs_005_load.ml mlguestfs.cmxa + $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ -t/guestfs_005_load: t/guestfs_005_load.ml +t/guestfs_010_launch: t/guestfs_010_launch.ml mlguestfs.cmxa $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ -t/guestfs_010_launch: t/guestfs_010_launch.ml +t/guestfs_050_lvcreate: t/guestfs_050_lvcreate.ml mlguestfs.cmxa $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ -t/guestfs_050_lvcreate: t/guestfs_050_lvcreate.ml +t/guestfs_060_readdir: t/guestfs_060_readdir.ml mlguestfs.cmxa $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ .mli.cmi: @@ -86,4 +99,8 @@ install-data-hook: CLEANFILES += $(noinst_DATA) -endif \ No newline at end of file +endif + +# Tell version 3.79 and up of GNU make to not build goals in this +# directory in parallel. (Possible solution for RHBZ#502309). +.NOTPARALLEL: