-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 1.01 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
38
39
40
.PHONY = make jar runjar test clean
# replace with path to your javac,java,jar,javafx installations
JC = /usr/bin/javac # replace with path to javac or javac.exe
JAR = /usr/bin/jar # replace with path to jar or jar.exe
JAVA = /usr/bin/java # replace with path to java or javaw.exe
MP = --module-path javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml #-Dfile.encoding=UTF-8
CP = -classpath ".:application"
APP = application.Main
#CLASSPATH = .:junit-platform-console-standalone-1.5.2.jar:json-simple-1.1.1.jar
make:
$(JC) $(MP) $(CP) -d . application/*.java
run:
$(JAVA) $(MP) $(CP) application.Main
fx:
$(JC) $(MP) $(CP) -d . application/*.java
fxrun:
$(JAVA) $(MP) $(CP) $(APP)
jar:
$(JAR) cvmf manifest.txt executable.jar .
runjar:
java $(MP) -jar executable.jar
zip:
zip team.zip application/* *
test:
javac $(MP) -cp $(CLASSPATH) *.java
java -jar junit-platform-console-standalone-1.5.2.jar --class-path $(CLASSPATH) -p ""
clean:
\rm application/*.class
\rm executable.jar