From 9db6c3ad2f66024dd89cef516a8e8c3f43da1d31 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 18 Nov 2014 09:52:06 +0100 Subject: [PATCH] Add debug target to Makefile for computers without jar command. >.> --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1ea3a61..8547340 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,20 @@ -.PHONY: clean run stat +.PHONY: clean run stat debug compile -game.jar: clean - mkdir -p compiled - find src/ -type f -name '*.java' -print0 | xargs -0 javac -cp src/ -d compiled/ - cp -r res/* compiled/ +game.jar: compile echo 'Main-Class: de.teamteamteam.spacescooter.Main' >compiled/manifest.txt jar cvfe game.jar 'de.teamteamteam.spacescooter.Main' -C compiled de -C compiled images -C compiled sounds -C compiled music +compile: clean + mkdir -p compiled + find src/ -type f -name '*.java' -print0 | xargs -0 javac -cp src/ -d compiled/ + cp -r res/* compiled/ + run: game.jar java -jar game.jar +debug: compile + java -cp bin/ de.teamteamteam.spacescooter.Main + clean: rm -rf compiled rm -f game.jar