1 ##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
10 # This is the makefile for the Objective Caml Llvm interface.
12 ##===----------------------------------------------------------------------===##
16 UsedComponents := core
19 include ../Makefile.ocaml
22 install-local:: install-meta
23 uninstall-local:: uninstall-meta
25 DestMETA := $(PROJ_libocamldir)/META.llvm
27 # Easy way of generating META in the objdir
28 copy-meta: $(OcamlDir)/META.llvm
30 $(OcamlDir)/META.llvm: META.llvm
31 $(Verb) $(CP) -f $< $@
33 install-meta:: $(OcamlDir)/META.llvm
34 $(Echo) "Install $(BuildMode) $(DestMETA)"
35 $(Verb) $(MKDIR) $(PROJ_libocamldir)
36 $(Verb) $(DataInstall) $< "$(DestMETA)"
39 $(Echo) "Uninstalling $(DestMETA)"
40 -$(Verb) $(RM) -f "$(DestMETA)"
42 .PHONY: copy-meta install-meta uninstall-meta