From 66a839a742c4c81f2549c85e2534c596146581d1 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 6 Mar 2011 12:16:25 +0200 Subject: [PATCH] * Makefile.am: ignore tests/ for make cc10 and make line33 --- Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 85ce3538..2c89d631 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,8 +41,9 @@ tags: # which is a sign that it needs some refactoring. requires the pmccabe # tool. If all is fine, it outputs nothing cc10: - @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \ - | grep -v mu-str-normalize.c \ + @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \ + | grep -v mu-str-normalize.c \ + | grep -v tests \ | sort -nr | awk '($$1 > 10)' # this warns about functions that are over 33 non-comment lines long, which is a @@ -50,8 +51,9 @@ cc10: # all is fine, it outputs nothing # note, mu_msg_str_normalize is excempted from this rule. line33: - @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \ - | grep -v mu-str-normalize.c \ + @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \ + | grep -v mu-str-normalize.c \ + | grep -v tests \ | awk '($$5 > 33)' # get all todo/fixme messages