From cf3e6b93a56bcb314000cbd0dee865e75afca2fa Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 8 Nov 2014 17:43:56 +0100 Subject: [PATCH] Add stat target to Makefile. --- Makefile | 5 ++++- README.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa4337b..e91e556 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 3f1d976..1b97cc2 100644 --- a/README.md +++ b/README.md @@ -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 ---------------