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/*