Make .depend file stable.
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 31 Jul 2011 20:53:28 +0000 (21:53 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 31 Jul 2011 20:53:28 +0000 (21:53 +0100)
Makefile.am

index 6736a80..fb632b7 100644 (file)
@@ -246,8 +246,9 @@ depend: .depend
 
 .depend: $(wildcard *.mli) $(wildcard *.ml)
        $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \
+         $(SED) -e 's/ *$$//' | \
          $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
-         sort > $@-t
+         LANG=C sort > $@-t
        mv $@-t $@
 
 include .depend