16 lines
400 B
Makefile
16 lines
400 B
Makefile
.PHONY: clean run
|
|
|
|
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
|
|
jar cvfe game.jar 'de.teamteamteam.spacescooter.Main' -C compiled de -C compiled images
|
|
|
|
run: game.jar
|
|
java -jar game.jar
|
|
|
|
clean:
|
|
rm -rf compiled
|
|
rm -f game.jar
|