summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1ad61a1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+MAINCLASS := Sub
+
+run: build
+ cd bin && java -Dawt.useSystemAAFontSettings=on -cp ../lib/gson-2.6.2.jar:. $(MAINCLASS)
+
+pack: build
+ echo "Main-Class: $(MAINCLASS)" > jar/manifest.txt
+ jar cvfm jar/$(MAINCLASS).jar jar/manifest.txt -C bin/ .
+ rm jar/manifest.txt
+ cp lib/gson-2.6.2.jar jar/
+ cd jar && jar xf gson-2.6.2.jar
+ cd jar && rm META-INF -R
+ cd jar && jar xf Sub.jar
+ cd jar && rm gson-2.6.2.jar
+ cd jar && rm Sub.jar
+ cd jar && zip -r Subconcious.jar ./*
+ cd jar && find . ! -name 'Subconcious.jar' -type f -exec rm -f {} +
+ cd jar && rm -R com META-INF
+
+build: dirs
+ javac -cp lib/gson-2.6.2.jar:. -d bin/ src/*.java
+
+dirs:
+ mkdir -p src bin jar
+
+clean:
+ rm -R jar/*
+ rm bin/*