source: indexers/trunk/lucene-gs/Makefile@ 17804

Last change on this file since 17804 was 16709, checked in by mdewsnip, 16 years ago

Now uses $JAVA_HOME to find javac and jar, to be consistent with the other Makefiles that use Java.

  • Property svn:keywords set to Author Date Id Revision
File size: 586 bytes
RevLine 
[16709]1JAVAC = $(JAVA_HOME)/bin/javac
2JAR = $(JAVA_HOME)/bin/jar
3
[16412]4LUCENE_JAR = ./lib/lucene-core-2.3.2.jar
[13685]5CLASSPATH = $(LUCENE_JAR):classes
6
[13702]7all: compile jar
[13685]8
9compile:
10 mkdir -p classes
[16709]11 $(JAVAC) -classpath $(CLASSPATH):. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/*.java
[13685]12
13jar:
[16709]14 cd classes && $(JAR) xf ../$(LUCENE_JAR)
15 $(JAR) cvf LuceneWrapper.jar -C classes .
[13685]16
[13702]17install:
[13685]18
19clean:
20 /bin/rm -f classes/org/greenstone/LuceneWrapper/*.class
[13702]21
22distclean: clean
[13803]23 if test -e classes; then /bin/rm -r classes; fi
[13804]24 if test -e LuceneWrapper.jar; then /bin/rm -r LuceneWrapper.jar; fi
Note: See TracBrowser for help on using the repository browser.