X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2FMakefile.am;fp=ocaml%2FMakefile.am;h=c688df038b37357f900e4288c00ee6d0acd14869;hb=5fc8bc9d9ef6dd23d55771c8def7c369f32e7919;hp=58fa8e3af9eedfcc6b55e74ed33fbe63d5af96ad;hpb=f408b757b1d75429fae5fa7630a4fc5451844de7;p=hivex.git diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index 58fa8e3..c688df0 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -88,19 +88,19 @@ include .depend SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly # Do the installation by hand, because we want to run ocamlfind. +install_files = META *.so *.a *.cma *.cmi *.mli + +if HAVE_OCAMLOPT +install_files += *.cmx *.cmxa +endif + install-data-hook: mkdir -p $(DESTDIR)$(OCAMLLIB) mkdir -p $(DESTDIR)$(OCAMLLIB)/stublibs $(OCAMLFIND) install \ -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \ - hivex \ - META *.so *.a *.cma *.cmi *.mli -if HAVE_OCAMLOPT - $(OCAMLFIND) install \ - -ldconf ignore -destdir $(DESTDIR)$(OCAMLLIB) \ - hivex \ - *.cmx *.cmxa -endif + $(PACKAGE_NAME) \ + $(install_files) CLEANFILES += $(noinst_DATA)