Stable OCaml dependencies.
authorRichard Jones <rjones@redhat.com>
Mon, 12 Sep 2011 10:33:19 +0000 (11:33 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 16 Sep 2011 14:32:49 +0000 (15:32 +0100)
(cherry picked from commit cbef2ffb0432756822cd2b02a305384f814e9b50)

configure.ac
ocaml/Makefile.am
resize/.depend
resize/Makefile.am

index 31743cc..2245bb7 100644 (file)
@@ -69,6 +69,8 @@ gl_INIT
 
 AC_PROG_LIBTOOL
 
+AC_PROG_SED
+
 dnl Check for basic C environment.
 AC_PROG_CC_STDC
 AC_PROG_INSTALL
index 8daa671..28c13c5 100644 (file)
@@ -135,7 +135,10 @@ depend: .depend
 
 .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
index 90a87cb..818f1b3 100644 (file)
@@ -1,6 +1,7 @@
-progress.cmo: utils.cmo ../ocaml/guestfs.cmi
-progress.cmx: utils.cmx ../ocaml/guestfs.cmx
-resize.cmo: utils.cmo progress.cmo ../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:
index 93a2600..a09f3c2 100644 (file)
@@ -93,7 +93,8 @@ depend: .depend
 
 .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 $@