2532068
--- hivex/ocaml/Makefile.in.orig	2011-05-17 17:38:17.300761216 +0100
2532068
+++ hivex/ocaml/Makefile.in	2011-05-17 17:38:27.668965851 +0100
2532068
@@ -54,7 +54,8 @@
2532068
 @HAVE_OCAMLOPT_TRUE@@HAVE_OCAML_TRUE@am__append_1 = mlhivex.cmxa
2532068
 DIST_COMMON = $(srcdir)/.depend $(srcdir)/META.in \
2532068
 	$(srcdir)/Makefile.am $(srcdir)/Makefile.in
2532068
-@HAVE_OCAML_TRUE@am__append_2 = $(noinst_DATA)
2532068
+@HAVE_OCAMLOPT_TRUE@@HAVE_OCAML_TRUE@am__append_2 = *.cmx *.cmxa
2532068
+@HAVE_OCAML_TRUE@am__append_3 = $(noinst_DATA)
2532068
 subdir = ocaml
2532068
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
2532068
 am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
2532068
@@ -870,7 +871,7 @@
2532068
 	t/*.ml
2532068
 
2532068
 CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so t/*.cmi \
2532068
-	t/*.cmo t/*.cmx t/*.o t/*.a t/*.so $(am__append_2)
2532068
+	t/*.cmo t/*.cmx t/*.o t/*.a t/*.so $(am__append_3)
2532068
 AM_CPPFLAGS = \
2532068
   -I$(top_builddir) -I$(OCAMLLIB) -I$(top_srcdir)/ocaml \
2532068
   -I$(top_srcdir)/lib \
2532068
@@ -894,6 +895,10 @@
2532068
 @HAVE_OCAML_TRUE@	t/hivex_300_fold
2532068
 
2532068
 @HAVE_OCAML_TRUE@SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
2532068
+
2532068
+# Do the installation by hand, because we want to run ocamlfind.
2532068
+@HAVE_OCAML_TRUE@install_files = META *.so *.a *.cma *.cmi *.mli \
2532068
+@HAVE_OCAML_TRUE@	$(am__append_2)
2532068
 all: all-am
2532068
 
2532068
 .SUFFIXES:
2532068
@@ -1211,17 +1216,13 @@
2532068
 @HAVE_OCAML_TRUE@hivex.cmo: hivex.cmi
2532068
 @HAVE_OCAML_TRUE@hivex.cmx: hivex.cmi
2532068
 
2532068
-# Do the installation by hand, because we want to run ocamlfind.
2532068
 @HAVE_OCAML_TRUE@install-data-hook:
2532068
 @HAVE_OCAML_TRUE@	mkdir -p $(DESTDIR)$(OCAMLLIB)
2532068
 @HAVE_OCAML_TRUE@	mkdir -p $(DESTDIR)$(OCAMLLIB)/stublibs
2532068
 @HAVE_OCAML_TRUE@	$(OCAMLFIND) install \
2532068
 @HAVE_OCAML_TRUE@	  -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \
2532068
-@HAVE_OCAML_TRUE@	  hivex \
2532068
-@HAVE_OCAML_TRUE@	  META *.so *.a *.cma *.cmi *.mli
2532068
-@HAVE_OCAMLOPT_TRUE@@HAVE_OCAML_TRUE@	$(OCAMLFIND) install \
2532068
-@HAVE_OCAMLOPT_TRUE@@HAVE_OCAML_TRUE@	  -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \
2532068
-@HAVE_OCAMLOPT_TRUE@@HAVE_OCAML_TRUE@	  *.cmx *.cmxa
2532068
+@HAVE_OCAML_TRUE@	  $(PACKAGE_NAME) \
2532068
+@HAVE_OCAML_TRUE@	  $(install_files)
2532068
 
2532068
 # Tell version 3.79 and up of GNU make to not build goals in this
2532068
 # directory in parallel.  (See RHBZ#502309).