ocaml: Make sure virt-resize, virt-sparsify are rebuilt if Guestfs API changes.

Add a dependency so these tools are rebuilt from scratch if the
Guestfs API changes.  This prevents the error:
"[...] make inconsistent assumptions over interface Guestfs".

This commit includes the generated changes to .depend files.
This commit is contained in:
Richard W.M. Jones
2011-10-25 14:14:35 +01:00
parent 51672634fd
commit 663b99950d
4 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
progress.cmi:
progress.cmo: utils.cmo progress.cmi
progress.cmx: utils.cmx progress.cmi
resize.cmo: utils.cmo progress.cmi
resize.cmx: utils.cmx progress.cmx
utils.cmo:
utils.cmx:
progress.cmi: ../ocaml/guestfs.cmi
progress.cmo: utils.cmo ../ocaml/guestfs.cmi progress.cmi
progress.cmx: utils.cmx ../ocaml/guestfs.cmx progress.cmi
resize.cmo: utils.cmo progress.cmi ../ocaml/guestfs.cmi
resize.cmx: utils.cmx progress.cmx ../ocaml/guestfs.cmx
utils.cmo: ../ocaml/guestfs.cmi
utils.cmx: ../ocaml/guestfs.cmx

View File

@@ -106,7 +106,7 @@ depend: .depend
.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f $@ $@-t
$(OCAMLFIND) ocamldep $^ | \
$(OCAMLFIND) ocamldep -I ../ocaml $^ | \
$(SED) 's/ *$$//' | \
$(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
sort > $@-t

View File

@@ -1,7 +1,7 @@
progress.cmi:
progress.cmo: utils.cmo progress.cmi
progress.cmx: utils.cmx progress.cmi
sparsify.cmo: utils.cmo progress.cmi
sparsify.cmx: utils.cmx progress.cmx
utils.cmo:
utils.cmx:
progress.cmi: ../ocaml/guestfs.cmi
progress.cmo: utils.cmo ../ocaml/guestfs.cmi progress.cmi
progress.cmx: utils.cmx ../ocaml/guestfs.cmx progress.cmi
sparsify.cmo: utils.cmo progress.cmi ../ocaml/guestfs.cmi
sparsify.cmx: utils.cmx progress.cmx ../ocaml/guestfs.cmx
utils.cmo: ../ocaml/guestfs.cmi
utils.cmx: ../ocaml/guestfs.cmx

View File

@@ -105,7 +105,7 @@ depend: .depend
.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f $@ $@-t
$(OCAMLFIND) ocamldep $^ | \
$(OCAMLFIND) ocamldep -I ../ocaml $^ | \
$(SED) 's/ *$$//' | \
$(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
sort > $@-t