diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2011-05-13 08:37:56 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-05-13 10:35:28 +0100 |
commit | b8ad15031cacf910634b4f4f4632232949c4acd2 (patch) | |
tree | ae6023c4ae26ab6c3c962b6a6e3e9c4a7fe563fb | |
parent | 79bdfa30ae1b8613211339b6318fc7cb2887bf5e (diff) | |
download | hivex-b8ad15031cacf910634b4f4f4632232949c4acd2.tar.gz hivex-b8ad15031cacf910634b4f4f4632232949c4acd2.tar.xz hivex-b8ad15031cacf910634b4f4f4632232949c4acd2.zip |
hivex: Fix install target for systems without native OCaml compiler
,----
| ocamlfind install \
| -ldconf ignore -destdir /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml \
| hivex \
| META *.so *.a *.cma *.cmx *.cmxa *.cmi *.mli
| Installed /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml/hivex/hivex.mli
| Installed /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml/hivex/hivex.cmi
| ocamlfind: *.cmxa: No such file or directory
| make[4]: *** [install-data-hook] Error 2
`----
-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) |