source: indexers/tags/2.81/lucene-gs/Makefile@ 18291

Last change on this file since 18291 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
Line 
1JAVAC = $(JAVA_HOME)/bin/javac
2JAR = $(JAVA_HOME)/bin/jar
3
4LUCENE_JAR = ./lib/lucene-core-2.3.2.jar
5CLASSPATH = $(LUCENE_JAR):classes
6
7all: compile jar
8
9compile:
10 mkdir -p classes
11 $(JAVAC) -classpath $(CLASSPATH):. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/*.java
12
13jar:
14 cd classes && $(JAR) xf ../$(LUCENE_JAR)
15 $(JAR) cvf LuceneWrapper.jar -C classes .
16
17install:
18
19clean:
20 /bin/rm -f classes/org/greenstone/LuceneWrapper/*.class
21
22distclean: clean
23 if test -e classes; then /bin/rm -r classes; fi
24 if test -e LuceneWrapper.jar; then /bin/rm -r LuceneWrapper.jar; fi
Note: See TracBrowser for help on using the repository browser.