Last change
on this file since 24718 was 24718, checked in by davidb, 13 years ago |
On the road to Greenstone working with a more update to date version of Lucene
|
-
Property svn:executable
set to
*
|
File size:
1.2 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 | classes/org/greenstone/LuceneWrapper/SharedSoleneQuery.class \
|
---|
17 | classes/org/greenstone/LuceneWrapper/SharedSoleneQueryResult.class
|
---|
18 |
|
---|
19 | LUCENE_WRAPPER_JAR = LuceneWrapper.jar
|
---|
20 |
|
---|
21 |
|
---|
22 | classes/%.class: src/%.java
|
---|
23 | mkdir -p classes && $(JAVAC) $(JAVACFLAGS) -classpath $(LUCENE_JAR):classes:. -d classes -sourcepath src/ src/$*.java
|
---|
24 |
|
---|
25 | LuceneWrapper.jar: $(LUCENE_WRAPPER_OBJECTS)
|
---|
26 | cd classes && jar xf ../$(LUCENE_JAR)
|
---|
27 | $(JAR) cf $(LUCENE_WRAPPER_JAR) -C classes .
|
---|
28 |
|
---|
29 | all: $(LUCENE_WRAPPER_JAR)
|
---|
30 |
|
---|
31 | install: $(LUCENE_WRAPPER_JAR)
|
---|
32 |
|
---|
33 | clean:
|
---|
34 | /bin/rm -f $(LUCENE_WRAPPER_OBJECTS) $(LUCENE_WRAPPER_JAR)
|
---|
35 |
|
---|
36 | distclean: clean
|
---|
37 | if test -e classes; then /bin/rm -r classes; fi
|
---|
38 | if test -e $(LUCENE_WRAPPER_JAR); then /bin/rm -r $(LUCENE_WRAPPER_JAR); fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.