JAVAC = @JAVAC@ JAVACFLAGS = @JAVACFLAGS@ JAR = jar LUCENE_JAR = ./lib/lucene-core-2.3.2.jar LUCENE_WRAPPER_OBJECTS = \ classes/org/greenstone/LuceneWrapper/GS2Analyzer.class \ classes/org/greenstone/LuceneWrapper/GS2IndexModifier.class \ classes/org/greenstone/LuceneWrapper/GS2LuceneDelete.class \ classes/org/greenstone/LuceneWrapper/GS2LuceneEditor.class \ classes/org/greenstone/LuceneWrapper/GS2LuceneIndexer.class \ classes/org/greenstone/LuceneWrapper/GS2LuceneQuery.class \ classes/org/greenstone/LuceneWrapper/LuceneQueryResult.class \ LUCENE_WRAPPER_JAR = LuceneWrapper.jar classes/%.class: src/%.java mkdir -p classes && $(JAVAC) $(JAVACFLAGS) -classpath $(LUCENE_JAR):classes:. -d classes -sourcepath src/ src/$*.java LuceneWrapper.jar: $(LUCENE_WRAPPER_OBJECTS) cd classes && jar xf ../$(LUCENE_JAR) $(JAR) cf $(LUCENE_WRAPPER_JAR) -C classes . all: $(LUCENE_WRAPPER_JAR) install: $(LUCENE_WRAPPER_JAR) clean: /bin/rm -f $(LUCENE_WRAPPER_OBJECTS) $(LUCENE_WRAPPER_JAR) distclean: clean if test -e classes; then /bin/rm -r classes; fi if test -e $(LUCENE_WRAPPER_JAR); then /bin/rm -r $(LUCENE_WRAPPER_JAR); fi