- Timestamp:
- 2014-07-16T21:53:44+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/lucene-gs/Makefile.in
r28370 r29148 2 2 JAVACFLAGS = @JAVACFLAGS@ 3 3 JAR = jar 4 JAVADEBUGFLAGS = #-Xlint:deprecation -Xlint:unchecked 5 6 LUCENE_VER = 4.7.2 7 4 8 5 9 LUCENE3_JAR = ./lib/lucene-core-3.3.0.jar 10 #LUCENE3_JAR = ./lib/lucene-core-3.6.0.jar 11 12 # To have a manifest file that lists the jar dependencies for a jar file: 13 14 # http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html 15 # https://blogs.oracle.com/olaf/entry/jdev_including_a_classpath_in 16 # http://www.coderanch.com/t/482185/java/java/classpath 17 # http://todayguesswhat.blogspot.co.nz/2011/03/jar-manifestmf-class-path-referencing.html 18 # http://stackoverflow.com/questions/9684737/class-not-found-despite-of-classpath-in-manifest 19 # http://stackoverflow.com/questions/219585/setting-multiple-jars-in-java-classpath 20 # JAVA 6 JVM and later allows use of wildcards in classpath 21 # http://stackoverflow.com/questions/11607873/escape-wildcard-processing-in-java-classpath/11608165#comment15368871_11608165 22 # http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html 23 24 25 LUCENE4_WRAPPER_OBJECTS = \ 26 classes4/org/greenstone/LuceneWrapper4/GSLuceneConstants.class \ 27 classes4/org/greenstone/LuceneWrapper4/GSLuceneUtil.class \ 28 classes4/org/greenstone/LuceneWrapper4/GS2Analyzer.class \ 29 classes4/org/greenstone/LuceneWrapper4/GS2LuceneDelete.class \ 30 classes4/org/greenstone/LuceneWrapper4/GS2LuceneEditor.class \ 31 classes4/org/greenstone/LuceneWrapper4/GS2LuceneIndexer.class \ 32 classes4/org/greenstone/LuceneWrapper4/GS2LuceneQuery.class \ 33 classes4/org/greenstone/LuceneWrapper4/LuceneQueryResult.class \ 34 classes4/org/greenstone/LuceneWrapper4/SharedSoleneQuery.class \ 35 classes4/org/greenstone/LuceneWrapper4/SharedSoleneQueryResult.class 36 37 LUCENE4_WRAPPER_JAR = LuceneWrapper4.jar 38 6 39 7 40 LUCENE3_WRAPPER_OBJECTS = \ … … 19 52 20 53 # 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 54 # source and target to 1.4, only Lucene 3.x needs version 1.5 or higher 55 classes4/org/greenstone/LuceneWrapper4/%.class: src/org/greenstone/LuceneWrapper4/%.java 56 ifeq ($(GSDLOS),windows) 57 mkdir -p classes4 && $(JAVAC) $(JAVADEBUGFLAGS) -classpath "lib/lucene4/*;classes4;." -d classes4 -sourcepath src/ src/org/greenstone/LuceneWrapper4/$*.java 58 else 59 mkdir -p classes4 && $(JAVAC) $(JAVADEBUGFLAGS) -classpath "lib/lucene4/*:classes4:." -d classes4 -sourcepath src/ src/org/greenstone/LuceneWrapper4/$*.java 60 endif 61 62 LuceneWrapper4.jar: $(LUCENE4_WRAPPER_OBJECTS) 63 cd classes4 && for jar in ../lib/lucene4/*$(LUCENE_VER).jar; do \ 64 jar xf $$jar; \ 65 done 66 $(JAR) cf $(LUCENE4_WRAPPER_JAR) -C classes4 . 67 68 22 69 classes3/org/greenstone/LuceneWrapper3/%.class: src/org/greenstone/LuceneWrapper3/%.java 23 70 ifeq ($(GSDLOS),windows) … … 31 78 $(JAR) cf $(LUCENE3_WRAPPER_JAR) -C classes3 . 32 79 33 all: $(LUCENE3_WRAPPER_JAR) 80 81 all: $(LUCENE4_WRAPPER_JAR) 82 # $(LUCENE3_WRAPPER_JAR) 34 83 install: all 35 84 36 85 clean: 86 /bin/rm -f $(LUCENE4_WRAPPER_OBJECTS) $(LUCENE4_WRAPPER_JAR) 37 87 /bin/rm -f $(LUCENE3_WRAPPER_OBJECTS) $(LUCENE3_WRAPPER_JAR) 38 88 39 89 distclean: clean 90 if test -e classes4; then /bin/rm -r classes4; fi 91 if test -e $(LUCENE4_WRAPPER_JAR); then /bin/rm -r $(LUCENE4_WRAPPER_JAR); fi 40 92 if test -e classes3; then /bin/rm -r classes3; fi 41 93 if test -e $(LUCENE3_WRAPPER_JAR); then /bin/rm -r $(LUCENE3_WRAPPER_JAR); fi
Note:
See TracChangeset
for help on using the changeset viewer.