move main.class compilation and building

This commit is contained in:
foo 2016-02-15 20:40:25 +00:00
parent 6e5eb2b2c5
commit ce08d3bf86
2 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,7 @@ JAVA = /usr/bin/java
JAVAC = /usr/bin/javac JAVAC = /usr/bin/javac
JFLAGS = -g # -classpath $(LIBS) JFLAGS = -g # -classpath $(LIBS)
SRCS = main.java \ SRCS = uk/org/mafoo/wordbubbles/Cell.java \
uk/org/mafoo/wordbubbles/Cell.java \
uk/org/mafoo/wordbubbles/ImpossibleException.java \ uk/org/mafoo/wordbubbles/ImpossibleException.java \
uk/org/mafoo/wordbubbles/Lexicon.java \ uk/org/mafoo/wordbubbles/Lexicon.java \
uk/org/mafoo/wordbubbles/Prison.java uk/org/mafoo/wordbubbles/Prison.java
@ -21,7 +20,7 @@ run: all
.java.class: .java.class:
$(JAVAC) $(JFLAGS) $< $(JAVAC) $(JFLAGS) $<
build: $(OBJS) build: $(OBJS) main.class
clean: clean:
rm -f $(OBJS) rm -f $(OBJS)

View File

@ -6,4 +6,4 @@ mkdir -p war/WEB-INF/lib war/WEB-INF/classes
cp wordbubbles.jar war/WEB-INF/lib cp wordbubbles.jar war/WEB-INF/lib
# cp -r uk war/WEB-INF/classes # cp -r uk war/WEB-INF/classes
cd war cd war
zip -r ../wordbubbles.war *.jsp WEB-INF zip -r ../wordbubbles.war *.jsp WEB-INF words