Last change
on this file since 23356 was 23356, checked in by sjm84, 13 years ago |
Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.1 KB
|
Line | |
---|
1 | JAVAC = @JAVAC@
|
---|
2 | JAVACFLAGS = @JAVACFLAGS@
|
---|
3 | JAR = jar
|
---|
4 |
|
---|
5 | LUCENE_JAR = ./lib/lucene-core-2.3.2.jar
|
---|
6 |
|
---|
7 |
|
---|
8 | LUCENE_WRAPPER_OBJECTS = \
|
---|
9 | classes/org/greenstone/LuceneWrapper/GS2Analyzer.class \
|
---|
10 | classes/org/greenstone/LuceneWrapper/GS2IndexModifier.class \
|
---|
11 | classes/org/greenstone/LuceneWrapper/GS2LuceneDelete.class \
|
---|
12 | classes/org/greenstone/LuceneWrapper/GS2LuceneEditor.class \
|
---|
13 | classes/org/greenstone/LuceneWrapper/GS2LuceneIndexer.class \
|
---|
14 | classes/org/greenstone/LuceneWrapper/GS2LuceneQuery.class \
|
---|
15 | classes/org/greenstone/LuceneWrapper/LuceneQueryResult.class \
|
---|
16 |
|
---|
17 | LUCENE_WRAPPER_JAR = LuceneWrapper.jar
|
---|
18 |
|
---|
19 |
|
---|
20 | classes/%.class: src/%.java
|
---|
21 | mkdir -p classes && $(JAVAC) $(JAVACFLAGS) -classpath $(LUCENE_JAR):classes:. -d classes -sourcepath src/ src/$*.java
|
---|
22 |
|
---|
23 | LuceneWrapper.jar: $(LUCENE_WRAPPER_OBJECTS)
|
---|
24 | cd classes && jar xf ../$(LUCENE_JAR)
|
---|
25 | $(JAR) cf $(LUCENE_WRAPPER_JAR) -C classes .
|
---|
26 |
|
---|
27 | all: $(LUCENE_WRAPPER_JAR)
|
---|
28 |
|
---|
29 | install: $(LUCENE_WRAPPER_JAR)
|
---|
30 |
|
---|
31 | clean:
|
---|
32 | /bin/rm -f $(LUCENE_WRAPPER_OBJECTS) $(LUCENE_WRAPPER_JAR)
|
---|
33 |
|
---|
34 | distclean: clean
|
---|
35 | if test -e classes; then /bin/rm -r classes; fi
|
---|
36 | if test -e $(LUCENE_WRAPPER_JAR); then /bin/rm -r $(LUCENE_WRAPPER_JAR); fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.