From 351a26ddc0a1ec85886fc961612f05686cce82e6 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 17 Dec 2013 16:11:57 -0800 Subject: [PATCH] cstyle: Exclude several files from 'make checkstyle' The zfs_config.h header and *.mod.c files are both products of the build process. They must be excluded from the style check because they are not part of the pristine source. Signed-off-by: Brian Behlendorf Issue #1821 --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 6c808b6629..dfb006b757 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,7 +41,8 @@ dist-hook: $(distdir)/META checkstyle: - find ${top_srcdir} -name '*.[hc]' -type f -exec scripts/cstyle.pl {} \; + @find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \ + ! -name '*.mod.c' -type f -exec scripts/cstyle.pl {} \+ ctags: $(RM) $(top_srcdir)/tags