mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-01-22 09:19:55 +00:00
34 lines
863 B
Makefile
34 lines
863 B
Makefile
JAVA = /usr/bin/java
|
|
LIBS = .:war/WEB-INF/lib/commons-lang.jar:war/WEB-INF/lib/sqlite-jdbc.jar
|
|
JAVAC = /usr/bin/javac
|
|
JFLAGS = -g -classpath $(LIBS)
|
|
|
|
SRCS = uk/org/mafoo/wordsearch/CouldNotPlaceWordException.java \
|
|
uk/org/mafoo/wordsearch/Bounds.java \
|
|
uk/org/mafoo/wordsearch/GridFactory.java \
|
|
uk/org/mafoo/wordsearch/DistributedRandomNumberGenerator.java \
|
|
uk/org/mafoo/wordsearch/Direction.java
|
|
|
|
JSPS = $(wildcard war/*.jsp war/*.css war/WEB-INF/jspf/*.jspf)
|
|
|
|
OBJS = ${SRCS:.java=.class}
|
|
|
|
.SUFFIXES: .java .class
|
|
|
|
.PHONY: default clean
|
|
default: wordsearch.war
|
|
|
|
clean:
|
|
rm -f $(OBJS) wordsearch.jar wordsearch.war
|
|
|
|
.java.class:
|
|
$(JAVAC) $(JFLAGS) $<
|
|
|
|
wordsearch.jar: $(OBJS)
|
|
jar cf $@ $(OBJS)
|
|
|
|
war/WEB-INF/lib/wordsearch.jar: wordsearch.jar
|
|
cp $< $@
|
|
|
|
wordsearch.war: war/WEB-INF/lib/wordsearch.jar $(JSPS)
|
|
jar -cvf $@ -C war .
|