xref: /trunk/main/lucene/makefile.mk (revision d496b099)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=.
25
26PRJNAME=so_lucene
27TARGET=so_lucene
28
29
30# --- Settings -----------------------------------------------------
31
32.INCLUDE :	settings.mk
33.INCLUDE :	antsettings.mk
34
35.IF "$(SOLAR_JAVA)" != ""
36.IF "$(SYSTEM_LUCENE)" == "YES"
37
38all:
39	@echo "An already available installation of Apache Lucene should exist on your system."
40	@echo "Therefore the version provided here does not need to be built in addition."
41
42.ENDIF
43
44# --- Files --------------------------------------------------------
45
46LUCENE_MAJOR=2
47LUCENE_MINOR=9
48LUCENE_MICRO=4
49
50LUCENE_NAME=lucene-$(LUCENE_MAJOR).$(LUCENE_MINOR).$(LUCENE_MICRO)
51# NOTE that the jar names do not contain the micro version
52LUCENE_CORE_JAR=lucene-core-$(LUCENE_MAJOR).$(LUCENE_MINOR).$(LUCENE_MICRO)-dev.jar
53LUCENE_ANALYZERS_JAR=lucene-analyzers-$(LUCENE_MAJOR).$(LUCENE_MINOR).$(LUCENE_MICRO)-dev.jar
54
55TARFILE_NAME=$(LUCENE_NAME)-src
56TARFILE_MD5=17960f35b2239654ba608cf1f3e256b3
57TARFILE_ROOTDIR=$(LUCENE_NAME)
58
59PATCH_FILES=lucene.patch
60
61.IF "$(OS)" == "WNT"
62PATCH_FILES+= long_path.patch
63.ENDIF
64
65PATCH_FILES+=lucene-java-version.patch
66
67BUILD_DIR=.
68BUILD_ACTION= ${ANT} -buildfile .$/contrib$/analyzers$/build.xml
69
70OUT2BIN=.$/build$/$(LUCENE_CORE_JAR) .$/build$/contrib$/analyzers/common$/$(LUCENE_ANALYZERS_JAR)
71
72.ELSE			# $(SOLAR_JAVA)!= ""
73nojava:
74	@echo "Not building $(PRJNAME) because Java is disabled"
75.ENDIF			# $(SOLAR_JAVA)!= ""
76
77# --- Targets ------------------------------------------------------
78
79.INCLUDE : set_ext.mk
80.INCLUDE : target.mk
81
82.IF "$(SOLAR_JAVA)" != ""
83.INCLUDE : tg_ext.mk
84.ENDIF
85