git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06df9ec
)
ocaml: Rebuild the tests from source if the main library changes.
author
Richard Jones
<rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 11:45:11 +0000
(12:45 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 11:45:11 +0000
(12:45 +0100)
ocaml/Makefile.am
patch
|
blob
|
history
diff --git
a/ocaml/Makefile.am
b/ocaml/Makefile.am
index
e4a0a73
..
12522f2
100644
(file)
--- 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: