diff options
-rw-r--r-- | ocaml/Makefile.am | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index e61b5db..b97fe37 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -94,7 +94,12 @@ install-data-hook: $(OCAMLFIND) install \ -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \ hivex \ - META *.so *.a *.cma *.cmx *.cmxa *.cmi *.mli + META *.so *.a *.cma *.cmi *.mli +if HAVE_OCAMLOPT + $(OCAMLFIND) install \ + -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \ + *.cmx *.cmxa +endif CLEANFILES += $(noinst_DATA) |