From 0938e43a60f9d729d9795cf45498e60217fece0e Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Wed, 17 Aug 2011 00:42:00 +0200 Subject: [PATCH] out-of-tree build: fix make and make install $(srcdir) is not needed for guestfs_c.c. *.mli only exists in $(srcdir) and isn't found on "make install" otherwise --- ocaml/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index 7028fa4..8daa671 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)/$< @@ -149,7 +149,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) -- 1.8.3.1