summaryrefslogtreecommitdiffstats
path: root/ocaml
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-07-29 12:45:11 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-07-29 12:45:11 +0100
commit2d5b0e7599b456d6817b0f225f5ed4ce4795d043 (patch)
treed171dcad10c629e994c94c7581197d6fb8d2c65c /ocaml
parent06df9ec2413d7f5ae366bfab1b2177d7b3929837 (diff)
downloadlibguestfs-2d5b0e7599b456d6817b0f225f5ed4ce4795d043.tar.gz
libguestfs-2d5b0e7599b456d6817b0f225f5ed4ce4795d043.tar.xz
libguestfs-2d5b0e7599b456d6817b0f225f5ed4ce4795d043.zip
ocaml: Rebuild the tests from source if the main library changes.
Diffstat (limited to 'ocaml')
-rw-r--r--ocaml/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
index e4a0a734..12522f24 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: