diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1,24 +1,30 @@ MAINCLASS := Sub +JAVAC_ARGS := -Xlint:all + +.PHONY: all run pack build dirs clean +all: build run: build cd bin && java -Dawt.useSystemAAFontSettings=on -cp ../lib/gson-2.6.2.jar:. $(MAINCLASS) +.ONESHELL: 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 + cd jar + jar xf gson-2.6.2.jar + rm META-INF -R + jar xf Sub.jar + rm gson-2.6.2.jar + rm Sub.jar + zip -r Subconcious.jar ./* + find . ! -name 'Subconcious.jar' -type f -exec rm -f {} + + rm -R com META-INF build: dirs - javac -cp lib/gson-2.6.2.jar:. -d bin/ src/*.java + javac $(JAVAC_ARGS) -cp lib/gson-2.6.2.jar:. -d bin/ src/*.java dirs: mkdir -p src bin jar |