diff options
-rw-r--r-- | ocaml/.depend | 10 | ||||
-rw-r--r-- | ocaml/Makefile.am | 5 |
2 files changed, 8 insertions, 7 deletions
diff --git a/ocaml/.depend b/ocaml/.depend index 50746674..2a582db6 100644 --- a/ocaml/.depend +++ b/ocaml/.depend @@ -1,5 +1,5 @@ -guestfs.cmi: -bindtests.cmo: guestfs.cmi -bindtests.cmx: guestfs.cmx -guestfs.cmo: guestfs.cmi -guestfs.cmx: guestfs.cmi +guestfs.cmi: +bindtests.cmo: guestfs.cmi +bindtests.cmx: guestfs.cmx +guestfs.cmo: guestfs.cmi +guestfs.cmx: guestfs.cmi diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index 1aa0cb6a..d65ebaaf 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -94,8 +94,9 @@ t/%.cmx: t/%.ml mlguestfs.cmxa depend: .depend .depend: $(wildcard *.mli) $(wildcard *.ml) - rm -f .depend - $(OCAMLFIND) ocamldep $^ > $@ + rm -f $@ $@-t + $(OCAMLFIND) ocamldep $^ | sed 's/ *$$//' > $@-t + mv $@-t $@ include .depend |