Add stat target to Makefile.

This commit is contained in:
Jan Philipp Timme 2014-11-08 17:43:56 +01:00
parent 0d90b387c3
commit cf3e6b93a5
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.PHONY: clean run
.PHONY: clean run stat
game.jar: clean
mkdir -p compiled
@ -13,3 +13,6 @@ run: game.jar
clean:
rm -rf compiled
rm -f game.jar
stat:
find . -type f -name '*.java' -print0 | xargs -0 wc -l

View File

@ -28,6 +28,10 @@ There are some minor things you need to set up to your project in eclipse:
* Add the folder res/ to your *build path*!
* You're now set up to develop and test!
Stats
-----
If you're interested in the amount of code, run 'make stat'.
Troubleshooting
---------------