aboutsummaryrefslogtreecommitdiffstats
path: root/Maintenance
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-06-02 22:03:13 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-06-02 22:03:13 +0200
commit24ff863f027f9bb6089aebac6bcd0d24148feb36 (patch)
tree38b767ca145ecdb71176a9f13110ad34f8849833 /Maintenance
parentc2e7e5783befef57cf6c2b14578d2b4e128eff62 (diff)
downloadlufa-24ff863f027f9bb6089aebac6bcd0d24148feb36.tar.gz
lufa-24ff863f027f9bb6089aebac6bcd0d24148feb36.tar.bz2
lufa-24ff863f027f9bb6089aebac6bcd0d24148feb36.zip
Add maintenance makefile rule to detect oversize code lines.
Diffstat (limited to 'Maintenance')
-rw-r--r--Maintenance/makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Maintenance/makefile b/Maintenance/makefile
index a0a19bcd5..8363fbed9 100644
--- a/Maintenance/makefile
+++ b/Maintenance/makefile
@@ -14,6 +14,10 @@ LUFA_ROOT := ../
all:
+# Print a list of all filenames and line numbers that exceed an allowed threshold
+line-lengths:
+ awk '{ if (length > 150) { print FILENAME, ":", FNR, "[", length, "]" } }' `find $(LUFA_ROOT) -name *.[ch]`
+
# Generate a header containing all library functions
function-list:
$(MAKE) -C $(patsubst %/,%,$(LUFA_ROOT))/LUFA doxygen DOXYGEN_OVERRIDE_PARAMS="GENERATE_HTML=no GENERATE_XML=yes"