forked from galsjel/RuneScape-317
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 771 Bytes
/
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
all: build
java -cp bin Game 10 0 highmem members 32
build:
mkdir -p bin
javac -d bin src/*.java
jar: build
jar cmvf META-INF/MANIFEST.MF localhost.jar -C bin/ .
java -jar localhost.jar 10 0 highmem members 32
.PHONY: test
test:
java -cp bin test/PreviewSinCos2D.java
# recurse:
# mkdir -p bin
# javac -d bin $(shell find src -name *.java)
# old:
# ifeq ($(OS), Windows_NT)
# ifeq ($(shell pwsh -v > nul 2>&1 && echo 1), 1)
# pwsh -Command "echo 'y' | mvn compile exec:java '-Dexec.mainClass=Game' '-Dexec.args=10 0 highmem members 32'"
# else
# mvn compile exec:java -Dexec.mainClass=Game -Dexec.args="10 0 highmem members 32" < nul
# endif
# else
# mvn compile exec:java -Dexec.mainClass=Game -Dexec.args="10 0 highmem members 32"
# endif