Changeset 16709

Show
Ignore:
Timestamp:
12.08.2008 10:39:42 (11 years ago)
Author:
mdewsnip
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • indexers/trunk/lucene-gs/Makefile

    r16583 r16709  
     1JAVAC = $(JAVA_HOME)/bin/javac 
     2JAR = $(JAVA_HOME)/bin/jar 
     3 
    14LUCENE_JAR = ./lib/lucene-core-2.3.2.jar 
    25CLASSPATH = $(LUCENE_JAR):classes 
     
    69compile: 
    710    mkdir -p classes 
    8     javac -classpath $(CLASSPATH):. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/*.java 
     11    $(JAVAC) -classpath $(CLASSPATH):. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/*.java 
    912 
    1013jar: 
    11     cd classes && jar xf ../$(LUCENE_JAR) 
    12     jar cvf LuceneWrapper.jar -C classes . 
     14    cd classes && $(JAR) xf ../$(LUCENE_JAR) 
     15    $(JAR) cvf LuceneWrapper.jar -C classes . 
    1316 
    1417install: