mirror of
https://github.com/fooflington/wordbubbles.git
synced 2025-04-05 02:29:07 +00:00
autobuilding
This commit is contained in:
parent
7f4d5d9f49
commit
c32e62dfc5
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
**/*.class
|
||||||
|
wordbubbles.jar
|
||||||
|
wordbubbles.war
|
30
Makefile
Normal file
30
Makefile
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
JAVA = /usr/bin/java
|
||||||
|
# JAVAFLAGS = -version # -classpath $(LIBS)
|
||||||
|
JAVAC = /usr/bin/javac
|
||||||
|
JFLAGS = -g # -classpath $(LIBS)
|
||||||
|
|
||||||
|
SRCS = main.java \
|
||||||
|
uk/org/mafoo/wordbubbles/Cell.java \
|
||||||
|
uk/org/mafoo/wordbubbles/ImpossibleException.java \
|
||||||
|
uk/org/mafoo/wordbubbles/Lexicon.java \
|
||||||
|
uk/org/mafoo/wordbubbles/Prison.java
|
||||||
|
|
||||||
|
OBJS = ${SRCS:.java=.class}
|
||||||
|
|
||||||
|
.SUFFIXES: .java .class
|
||||||
|
|
||||||
|
all: build wordbubbles.jar
|
||||||
|
|
||||||
|
run: all
|
||||||
|
$(JAVA) main
|
||||||
|
|
||||||
|
.java.class:
|
||||||
|
$(JAVAC) $(JFLAGS) $<
|
||||||
|
|
||||||
|
build: $(OBJS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(OBJS)
|
||||||
|
|
||||||
|
wordbubbles.jar: build
|
||||||
|
jar cf $(OBJS)
|
8
mkwar.sh
Executable file
8
mkwar.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash -x
|
||||||
|
|
||||||
|
make wordbubbles.jar
|
||||||
|
mkdir -p war/WEB-INF/lib war/WEB-INF/classes
|
||||||
|
cp wordbubbles.jar war/WEB-INF/lib
|
||||||
|
# cp -r uk war/WEB-INF/classes
|
||||||
|
cd war
|
||||||
|
zip -r ../wordbubbles.war *.jsp WEB-INF
|
Loading…
x
Reference in New Issue
Block a user