Erstellen einer Makefile zum Bauen des Games in ein .jar.
This commit is contained in:
parent
4555e8792f
commit
0203d1dfd9
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@
|
|||||||
.settings
|
.settings
|
||||||
.classpath
|
.classpath
|
||||||
bin
|
bin
|
||||||
|
compiled
|
||||||
|
game.jar
|
||||||
|
15
Makefile
Normal file
15
Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
.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
|
Loading…
Reference in New Issue
Block a user