diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-19 08:35:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-19 08:35:21 +0100 |
commit | 23cc82e76302f1456647b1bfa428b64c2a0ec08a (patch) | |
tree | df0617e5e83fd858ec0f9fe55faeac8f3b9a1ab9 /Makefile | |
parent | Add TODOs for various corrections (diff) | |
download | Subconscious-java-23cc82e76302f1456647b1bfa428b64c2a0ec08a.tar.gz Subconscious-java-23cc82e76302f1456647b1bfa428b64c2a0ec08a.zip |
Update makefile
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 |