2014-11-08 17:43:56 +01:00
|
|
|
.PHONY: clean run stat
|
2014-10-24 14:16:00 +02:00
|
|
|
|
|
|
|
game.jar: clean
|
|
|
|
mkdir -p compiled
|
|
|
|
find src/ -type f -name '*.java' -print0 | xargs -0 javac -cp src/ -d compiled/
|
|
|
|
cp -r res/* compiled/
|
|
|
|
echo 'Main-Class: de.teamteamteam.spacescooter.Main' >compiled/manifest.txt
|
2014-11-11 21:34:30 +01:00
|
|
|
jar cvfe game.jar 'de.teamteamteam.spacescooter.Main' -C compiled de -C compiled images -C compiled sounds -C compiled music
|
2014-10-24 14:16:00 +02:00
|
|
|
|
|
|
|
run: game.jar
|
|
|
|
java -jar game.jar
|
|
|
|
|
|
|
|
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
|