aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-10 11:14:23 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-10 11:14:23 +0100
commitffd2ec134c38ec782d7d29c9658ca35cad2b91d9 (patch)
tree165319f42bd1bea7c5de45935c1405d7e7a1b3ce /Makefile
downloadSubconscious-old-ffd2ec134c38ec782d7d29c9658ca35cad2b91d9.tar.gz
Subconscious-old-ffd2ec134c38ec782d7d29c9658ca35cad2b91d9.zip
First commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13da9d5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+MAINCLASS := Subconscious
+
+run: build
+ cd bin && java $(MAINCLASS)
+
+pack: build
+ echo "Main-Class: $(MAINCLASS)" > jar/manifest.txt
+ jar cvfm jar/$(MAINCLASS).jar jar/manifest.txt -C bin/ .
+
+build: dirs
+ javac -d bin/ src/*.java
+
+dirs:
+ mkdir -p src bin jar
+
+clean:
+ rm jar/*
+ rm bin/*