-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (35 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: all jars jarserver jarclient doc clean runserv runclient
all: bin/Winsome/WinsomeServer/ServerMain.class \
bin/Winsome/WinsomeClient/ClientMain.class
jars: jarserver jarclient
runserv: bin/Winsome/WinsomeServer/ServerMain.class
java -cp ".:bin/:libs/*" Winsome.WinsomeServer.ServerMain
runclient: bin/Winsome/WinsomeClient/ClientMain.class
java -cp ".:bin/:libs/*" Winsome.WinsomeClient.ClientMain
jarserver: bin/Winsome/WinsomeServer/ServerMain.class
jar cfm bin/WinsomeServer.jar server-manifest.txt -C bin Winsome
jarclient: bin/Winsome/WinsomeClient/ClientMain.class
jar cfm bin/WinsomeClient.jar client-manifest.txt -C bin Winsome
bin/Winsome/WinsomeServer/ServerMain.class: \
src/Winsome/WinsomeServer/*.java \
src/Winsome/WinsomeRequests/*.java \
src/Winsome/WinsomeTasks/*.java \
src/Winsome/WinsomeExceptions/*.java
javac -d bin -cp "libs/*" -sourcepath src/ \
src/Winsome/WinsomeServer/*.java
bin/Winsome/WinsomeClient/ClientMain.class: \
src/Winsome/WinsomeClient/*.java \
src/Winsome/WinsomeRequests/*.java \
src/Winsome/WinsomeExceptions/*.java
javac -d bin -cp "libs/*" -sourcepath src/ \
src/Winsome/WinsomeClient/*.java
doc:
javadoc -private -d doc \
-link https://docs.oracle.com/en/java/javase/11/docs/api/ \
-link http://fasterxml.github.io/jackson-core/javadoc/2.9/ \
-link http://fasterxml.github.io/jackson-databind/javadoc/2.9/ \
-link https://commons.apache.org/proper/commons-cli/apidocs/ \
-sourcepath src -cp ".:libs/*" \
-subpackages Winsome
clean:
rm -fr bin/*