From 23cc82e76302f1456647b1bfa428b64c2a0ec08a Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 19 Nov 2018 08:35:21 +0100 Subject: Update makefile --- Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 1ad61a1..935fb32 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.1