X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2FMakefile.am;h=12522f24108ffde1a5b904495028da977a94365e;hb=804330120dcbedc754174fdfdf13cf7577a7eba9;hp=c7d43a01b96be84e304e1f5f6135e8218472616a;hpb=0c4ec8c09a40f6c1aa18e87231bded3cfdbdb53b;p=libguestfs.git diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index c7d43a0..12522f2 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -57,6 +57,7 @@ noinst_DATA += bindtests \ t/guestfs_060_readdir bindtests: bindtests.cmx mlguestfs.cmxa + mkdir -p t $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@ t/guestfs_005_load: t/guestfs_005_load.cmx mlguestfs.cmxa @@ -75,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: