Created
April 18, 2015 20:26
-
-
Save marius92mc/a1ba2cec111afa22c6a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile for compiling IndexFiles.java and SearchFiles.java | |
# | |
# define a makefile variable for the java compiler | |
# | |
JCC = javac | |
# define a makefile variable for compilation flags | |
# the -g flag compiles with debugging information | |
# | |
CLASSPATH = .:../lucene-5.0.0/lib_made/lucene-core-5.0.0.jar:../lucene-5.0.0/lib_made/lucene-analyzers-common-5.0.0.jar:../lucene-5.0.0/lib_made/lucene-queryparser-5.0.0.jar:../lucene-5.0.0/lib_made/lucene-demo-5.0.0.jar | |
# typing 'make' will invoke the first target entry in the makefile | |
# (the default one in this case) | |
# | |
default: IndexFiles.class SearchFiles.class RomanianAnalyzerWithoutDiacritics.class | |
# this target entry builds the IndexFiles class | |
# the IndexFiles.class file is dependent on the IndexFiles.java file | |
# and the rule associated with this entry gives the command to create it | |
# | |
IndexFiles.class: IndexFiles.java | |
$(JCC) -classpath $(CLASSPATH) $< | |
@echo "" | |
SearchFiles.class: SearchFiles.java | |
$(JCC) -classpath $(CLASSPATH) $< | |
@echo "" | |
RomanianAnalyzerWithoutDiacritics.class: RomanianAnalyzerWithoutDiacritics.java | |
$(JCC) -classpath $(CLASSPATH) $< | |
@echo "" | |
# To start over from scratch, type 'make clean'. | |
# Removes all .class files, so that the next make rebuilds them | |
# | |
clean: | |
$(RM) *.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment