From 09ccb09f2cb7413fa2a3e3ff0c1b6740256acb0f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 14 Dec 2010 15:46:53 +0000 Subject: [PATCH] ocaml: Make dependencies file stable. --- Makefile.am | 4 +++- configure.ac | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index cc16b78..cfab18c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -103,7 +103,9 @@ depend: .depend .depend: $(wildcard *.mli) $(wildcard *.ml) rm -f $@ $@-t - $(OCAMLFIND) ocamldep $^ > $@-t + $(OCAMLFIND) ocamldep $^ | \ + $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \ + sort > $@-t mv $@-t $@ include .depend diff --git a/configure.ac b/configure.ac index 1114c6a..477fc85 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,8 @@ test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) AM_PROG_CC_C_O AC_SYS_LARGEFILE +AC_PROG_SED + dnl Check for OCaml compiler. AC_PROG_OCAML if test "$OCAMLOPT" = "no"; then -- 1.8.3.1