X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2FMakefile.am;h=28c13c5f9294979749ac67281e160d284161b831;hb=5c2f1a2d9433eeb5aebeec26f0412c703bbe7269;hp=7028fa4ab0655e54bbcf49840d0f69dc1f5fa370;hpb=900c9626b9d4f567b21aae433493b4b3b1d09f6d;p=libguestfs.git diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index 7028fa4..28c13c5 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -53,7 +53,7 @@ mlguestfs.cmxa: $(XOBJS) $(OCAMLMKLIB) -o mlguestfs $^ -L$(top_builddir)/src/.libs -lguestfs guestfs_c.o: guestfs_c.c - $(CC) $(AM_CPPFLAGS) $(CFLAGS) -fPIC -Wall -c $(srcdir)/$< + $(CC) $(AM_CPPFLAGS) $(CFLAGS) -fPIC -Wall -c $< guestfs_c_actions.o: guestfs_c_actions.c $(CC) $(AM_CPPFLAGS) $(CFLAGS) -fPIC -Wall -c $(srcdir)/$< @@ -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 @@ -149,7 +152,7 @@ install-data-hook: $(OCAMLFIND) install \ -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \ guestfs \ - META *.so *.a *.cma *.cmx *.cmxa *.cmi *.mli + META *.so *.a *.cma *.cmx *.cmxa *.cmi $(srcdir)/*.mli CLEANFILES += $(noinst_DATA)