2014-11-18 09:52:06 +01:00
|
|
|
.PHONY: clean run stat debug compile
|
2014-10-24 14:16:00 +02:00
|
|
|
|
2014-11-18 09:52:06 +01:00
|
|
|
game.jar: compile
|
|
|
|
echo 'Main-Class: de.teamteamteam.spacescooter.Main' >compiled/manifest.txt
|
2014-11-25 10:46:44 +01:00
|
|
|
jar cvfe game.jar 'de.teamteamteam.spacescooter.Main' -C compiled de -C compiled images -C compiled sounds -C compiled music -C compiled levels
|
2014-11-18 09:52:06 +01:00
|
|
|
|
|
|
|
compile: clean
|
2014-10-24 14:16:00 +02:00
|
|
|
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
|
|
|
|
|
2014-11-18 09:52:06 +01:00
|
|
|
debug: compile
|
2014-11-29 23:36:03 +01:00
|
|
|
java -cp compiled/ de.teamteamteam.spacescooter.Main
|
2014-11-18 09:52:06 +01:00
|
|
|
|
2014-10-24 14:16:00 +02:00
|
|
|
clean:
|
|
|
|
rm -rf compiled
|
|
|
|
rm -f game.jar
|
2014-11-08 17:43:56 +01:00
|
|
|
|
|
|
|
stat:
|
|
|
|
find . -type f -name '*.java' -print0 | xargs -0 wc -l
|