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
20 include ../Makefile.ocaml
23 install-local:: install-meta
24 uninstall-local:: uninstall-meta
26 DestMETA := $(PROJ_libocamldir)/META.llvm
28 # Easy way of generating META in the objdir
29 copy-meta: $(OcamlDir)/META.llvm
31 $(OcamlDir)/META.llvm: META.llvm
32 $(Verb) $(CP) -f $< $@
34 install-meta:: $(OcamlDir)/META.llvm
35 $(Echo) "Install $(BuildMode) $(DestMETA)"
36 $(Verb) $(MKDIR) $(PROJ_libocamldir)
37 $(Verb) $(DataInstall) $< "$(DestMETA)"
40 $(Echo) "Uninstalling $(DestMETA)"
41 -$(Verb) $(RM) -f "$(DestMETA)"
43 .PHONY: copy-meta install-meta uninstall-meta