shithub: sox

Download patch

ref: 04ff48d65603eee3181418c6575aa07b879f03c3
parent: dc99f5fe39baf27095cfdfa8080f436382f04adc
author: rrt <rrt>
date: Wed Aug 12 09:22:43 EDT 2009

Add loc target to count lines of code with sloccount.

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -164,6 +164,20 @@
 distclean-local:
 	$(RM) soxstdint.h
 
+ALL_SOURCES = \
+	$(sox_SOURCES) \
+	$(example0_SOURCES) \
+	$(example1_SOURCES) \
+	$(example2_SOURCES) \
+	$(example3_SOURCES) \
+	$(example4_SOURCES) \
+	$(sox_sample_test_SOURCES) \
+	$(libsox_la_SOURCES)
+
+loc:
+	sloccount $(ALL_SOURCES)
+
+
 # Ideally we would use the "check" target so that "make distcheck"
 # would run the test suite, but an uninstalled libltdl build cannot
 # currently load its formats and effects, so the checks would fail.