X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2FMakefile.am;h=12522f24108ffde1a5b904495028da977a94365e;hp=e4a0a734245f87cca52ab7f962c55540e01b2c08;hb=f8f10578093e926f5f36289a6c11615d067fbcad;hpb=4c54721ad46b77c52eb6bb7e3ffe74325ac52797 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: