summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-11 18:42:18 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-11 18:42:18 +0000
commitae77a201488fc439bfdfa6314b947a1f5457b701 (patch)
tree662d4fa545ff3df0c36e15b351daee105a8324cb /bindings
parent55a7877cacbc05a3aa1617b7e1860ff26e86597e (diff)
downloadllvm-ae77a201488fc439bfdfa6314b947a1f5457b701.tar.gz
llvm-ae77a201488fc439bfdfa6314b947a1f5457b701.tar.bz2
llvm-ae77a201488fc439bfdfa6314b947a1f5457b701.tar.xz
Fix pr4820: Don't run llvm-config during "make clean" since it may have
already been removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/Makefile.ocaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index d98a489f7c..c46f6027cf 100644
--- a/bindings/ocaml/Makefile.ocaml
+++ b/bindings/ocaml/Makefile.ocaml
@@ -31,13 +31,16 @@ PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
OcamlDir := $(LibDir)/ocaml
# Info from llvm-config and similar
+ifndef IS_CLEANING_TARGET
ifdef UsedComponents
UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
endif
+endif
# Tools
OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
+ifndef IS_CLEANING_TARGET
ifneq ($(ObjectsO),)
OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
@@ -48,6 +51,7 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
$(UsedLibs))
endif
+endif
# -g was introduced in 3.10.0.
#ifneq ($(ENABLE_OPTIMIZED),1)