From 2d5b0e7599b456d6817b0f225f5ed4ce4795d043 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 29 Jul 2009 12:45:11 +0100 Subject: [PATCH 1/1] ocaml: Rebuild the tests from source if the main library changes. --- ocaml/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index e4a0a73..12522f2 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -76,6 +76,11 @@ t/guestfs_060_readdir: t/guestfs_060_readdir.cmx mlguestfs.cmxa mkdir -p t $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ +# Need to rebuild the tests from source if the main library has +# changed at all, otherwise we get inconsistent assumptions. +t/%.cmx: t/%.ml mlguestfs.cmxa + $(OCAMLFIND) ocamlopt -c $< -o $@ + .mli.cmi: $(OCAMLFIND) ocamlc -c $< -o $@ .ml.cmo: -- 1.8.3.1