diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
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/* |