[OCaml] Expose existing documentation in ocamldoc.
[oota-llvm.git] / bindings / ocaml / llvm / Makefile
1 ##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9
10 # This is the makefile for the Objective Caml Llvm interface.
11
12 ##===----------------------------------------------------------------------===##
13
14 LEVEL := ../../..
15 LIBRARYNAME := llvm
16 UsedComponents := core
17 UsedOcamlLibs := llvm
18
19 include ../Makefile.ocaml
20
21 all-local:: copy-meta
22 install-local:: install-meta
23 uninstall-local:: uninstall-meta
24
25 DestMETA := $(PROJ_libocamldir)/META.llvm
26
27 # Easy way of generating META in the objdir
28 copy-meta: $(OcamlDir)/META.llvm
29
30 $(OcamlDir)/META.llvm: META.llvm
31         $(Verb) $(CP) -f $< $@
32
33 install-meta:: $(OcamlDir)/META.llvm
34         $(Echo) "Install $(BuildMode) $(DestMETA)"
35         $(Verb) $(MKDIR) $(PROJ_libocamldir)
36         $(Verb) $(DataInstall) $< "$(DestMETA)"
37
38 uninstall-meta::
39         $(Echo) "Uninstalling $(DestMETA)"
40         -$(Verb) $(RM) -f "$(DestMETA)"
41
42 .PHONY: copy-meta install-meta uninstall-meta