build: don't emit trailing blanks, remove generated file
authorJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 11:55:51 +0000 (13:55 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 12:26:28 +0000 (14:26 +0200)
* ocaml/Makefile.am (.depend): Don't redirect directly to $@.
Filter out trailing blanks.
* ocaml/.depend: Regenerate.

ocaml/.depend
ocaml/Makefile.am

index 5074667..2a582db 100644 (file)
@@ -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
index 1aa0cb6..d65ebaa 100644 (file)
@@ -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