source: main/trunk/greenstone2/common-src/indexers/lucene-gs/Makefile.in@ 28370

Last change on this file since 28370 was 28370, checked in by davidb, 8 years ago

Changes that help using javac in Make fiels when compiling up Greenstone with Cygwin on Windows

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1JAVAC = @JAVAC@
2JAVACFLAGS = @JAVACFLAGS@
3JAR = jar
4
5LUCENE3_JAR = ./lib/lucene-core-3.3.0.jar
6
7LUCENE3_WRAPPER_OBJECTS = \
8 classes3/org/greenstone/LuceneWrapper3/GS2Analyzer.class \
9 classes3/org/greenstone/LuceneWrapper3/GS2IndexModifier.class \
10 classes3/org/greenstone/LuceneWrapper3/GS2LuceneDelete.class \
11 classes3/org/greenstone/LuceneWrapper3/GS2LuceneEditor.class \
12 classes3/org/greenstone/LuceneWrapper3/GS2LuceneIndexer.class \
13 classes3/org/greenstone/LuceneWrapper3/GS2LuceneQuery.class \
14 classes3/org/greenstone/LuceneWrapper3/LuceneQueryResult.class \
15 classes3/org/greenstone/LuceneWrapper3/SharedSoleneQuery.class \
16 classes3/org/greenstone/LuceneWrapper3/SharedSoleneQueryResult.class
17
18LUCENE3_WRAPPER_JAR = LuceneWrapper3.jar
19
20# For now, drop using JAVACFLAGS in compile line, as it typically sets
21# source and target to 1.4, only Lucene 3.x needsd version 1.5 or higher
22classes3/org/greenstone/LuceneWrapper3/%.class: src/org/greenstone/LuceneWrapper3/%.java
23ifeq ($(GSDLOS),windows)
24 mkdir -p classes3 && $(JAVAC) -classpath "$(LUCENE3_JAR);classes3;." -d classes3 -sourcepath src/ src/org/greenstone/LuceneWrapper3/$*.java
25else
26 mkdir -p classes3 && $(JAVAC) -classpath $(LUCENE3_JAR):classes3:. -d classes3 -sourcepath src/ src/org/greenstone/LuceneWrapper3/$*.java
27endif
28
29LuceneWrapper3.jar: $(LUCENE3_WRAPPER_OBJECTS)
30 cd classes3 && jar xf ../$(LUCENE3_JAR)
31 $(JAR) cf $(LUCENE3_WRAPPER_JAR) -C classes3 .
32
33all: $(LUCENE3_WRAPPER_JAR)
34install: all
35
36clean:
37 /bin/rm -f $(LUCENE3_WRAPPER_OBJECTS) $(LUCENE3_WRAPPER_JAR)
38
39distclean: clean
40 if test -e classes3; then /bin/rm -r classes3; fi
41 if test -e $(LUCENE3_WRAPPER_JAR); then /bin/rm -r $(LUCENE3_WRAPPER_JAR); fi
Note: See TracBrowser for help on using the repository browser.