]> Shamusworld >> Repos - apple2/blobdiff - Makefile
Added floppy #2 saving, statistics to makefile.
[apple2] / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index d1f78b5..61658c5
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@
 # This software is licensed under the GPL v2
 #
 
+FIND = find
+
 # Figure out which system we're compiling for, and set the appropriate variables
 
 ifeq "$(OSTYPE)" "msys"                                                        # Win32
@@ -159,6 +161,12 @@ $(TARGET)$(EXESUFFIX): $(OBJS)
 #      strip --strip-all vj$(EXESUFFIX)
 #      upx -9 vj$(EXESUFFIX)
 
+statistics:
+       @echo -n "Lines in source files: "
+       @-$(FIND) ./src -name "*.cpp" | xargs cat | wc -l
+       @echo -n "Lines in header files: "
+       @-$(FIND) ./src -name "*.h" | xargs cat | wc -l
+
 # Pull in dependencies autogenerated by gcc's -MMD switch
 # The "-" in front in there just in case they haven't been created yet