.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f $@ $@-t
- $(OCAMLFIND) ocamldep $^ | sed 's/ *$$//' | sort > $@-t
+ $(OCAMLFIND) ocamldep $^ | \
+ $(SED) 's/ *$$//' | \
+ $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
+ sort > $@-t
mv $@-t $@
include .depend
-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
+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:
.depend: $(wildcard *.mli) $(wildcard *.ml)
rm -f $@ $@-t
- $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \
+ $(OCAMLFIND) ocamldep $^ | \
+ $(SED) 's/ *$$//' | \
$(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
sort > $@-t
mv $@-t $@