summaryrefslogtreecommitdiff
path: root/lucene
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2012-12-10 18:56:46 +0000
committerPedro Giffuni <pfg@apache.org>2012-12-10 18:56:46 +0000
commit05e75fdb87d0c46352550123a0fdf7690ec90f4c (patch)
tree6aeeecdecd5cc342255330905e9f332263223592 /lucene
parent0ce59463f93b1c1fe78d18476249259bfc7e440e (diff)
Fixes to build with SYSTEM_LUCENE.
Notes
Notes: ignore: obsolete - use clucene
Diffstat (limited to 'lucene')
-rw-r--r--lucene/makefile.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/lucene/makefile.mk b/lucene/makefile.mk
index efb5019c3f9e..4599ee569af0 100644
--- a/lucene/makefile.mk
+++ b/lucene/makefile.mk
@@ -31,9 +31,17 @@ TARGET=so_lucene
.INCLUDE : settings.mk
.INCLUDE : antsettings.mk
-# --- Files --------------------------------------------------------
.IF "$(SOLAR_JAVA)" != ""
+.IF "$(SYSTEM_LUCENE)" == "YES"
+
+all:
+ @echo "An already available installation of Apache Lucene should exist on your system."
+ @echo "Therefore the version provided here does not need to be built in addition."
+
+.ENDIF
+
+# --- Files --------------------------------------------------------
LUCENE_MAJOR=2
LUCENE_MINOR=9
@@ -59,7 +67,10 @@ BUILD_ACTION= ${ANT} -buildfile .$/contrib$/analyzers$/build.xml
OUT2BIN=.$/build$/$(LUCENE_CORE_JAR) .$/build$/contrib$/analyzers/common$/$(LUCENE_ANALYZERS_JAR)
-.ENDIF
+.ELSE # $(SOLAR_JAVA)!= ""
+nojava:
+ @echo "Not building $(PRJNAME) because Java is disabled"
+.ENDIF # $(SOLAR_JAVA)!= ""
# --- Targets ------------------------------------------------------