summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-11-18 22:29:05 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-11-18 22:29:05 +0100
commite2bcaecea59bdf3a4092efdc4b9624b3f83f6fec (patch)
tree90e70bb3954173c25e63b65bbc64bd78f8c854be /Makefile
downloadSubconscious-java-e2bcaecea59bdf3a4092efdc4b9624b3f83f6fec.tar.gz
Subconscious-java-e2bcaecea59bdf3a4092efdc4b9624b3f83f6fec.zip
initial commit
Diffstat (limited to '')
-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/*