mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
ba848ec5dd
* Added test program for r_hash from python
12 lines
284 B
Makefile
12 lines
284 B
Makefile
sloc:
|
|
@if [ -n "$${SLOCDIR}" ]; then cd $$SLOCDIR ; fi ; \
|
|
total=0 ; \
|
|
for a in `find * -iname '*.c'`; do \
|
|
lines=$$(sloccount $$a |grep ansic= | cut -d ' ' -f 1) ; \
|
|
printf "$$lines\t$$a\n" ; \
|
|
total=$$(($$total+$$lines)) ; \
|
|
done ; \
|
|
printf "$$total\tTOTAL\n"
|
|
|
|
.PHONY: sloc
|