1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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/*