]> granicus.if.org Git - zfs/commitdiff
cstyle: Exclude several files from 'make checkstyle'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Dec 2013 00:11:57 +0000 (16:11 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 19 Dec 2013 00:46:35 +0000 (16:46 -0800)
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 <behlendorf1@llnl.gov>
Issue #1821

Makefile.am

index 6c808b6629cdd313073478fb1e1b33207419abac..dfb006b75745f305e5c69b1483e97acebca639d7 100644 (file)
@@ -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