]> git.proxmox.com Git - mirror_zfs.git/blame_incremental - Makefile.am
Remove l2arc_nocompress from zfs-module-parameters(5)
[mirror_zfs.git] / Makefile.am
... / ...
CommitLineData
1ACLOCAL_AMFLAGS = -I config
2
3include config/rpm.am
4include config/deb.am
5include config/tgz.am
6
7SUBDIRS = include rpm
8if CONFIG_USER
9SUBDIRS += udev etc man scripts lib tests cmd contrib
10endif
11if CONFIG_KERNEL
12SUBDIRS += module
13
14extradir = @prefix@/src/zfs-$(VERSION)
15extra_HEADERS = zfs.release.in zfs_config.h.in
16
17kerneldir = @prefix@/src/zfs-$(VERSION)/$(LINUX_VERSION)
18nodist_kernel_HEADERS = zfs.release zfs_config.h module/$(LINUX_SYMBOLS)
19endif
20
21AUTOMAKE_OPTIONS = foreign
22EXTRA_DIST = autogen.sh copy-builtin
23EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
24EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE
25
26@CODE_COVERAGE_RULES@
27
28distclean-local::
29 -$(RM) -R autom4te*.cache
30 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
31 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
32 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
33 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
34 -o -name '.*.rej' -o -size 0 -o -name '*%' -o -name '.*.cmd' \
35 -o -name 'core' -o -name 'Makefile' -o -name 'Module.symvers' \
36 -o -name '*.order' -o -name '*.markers' -o -name '*.gcda' \
37 -o -name '*.gcno' \) \
38 -type f -print | xargs $(RM)
39
40dist-hook:
41 sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
42 $(distdir)/META
43
44checkstyle: cstyle shellcheck flake8 commitcheck mancheck
45
46commitcheck:
47 @if git rev-parse --git-dir > /dev/null 2>&1; then \
48 scripts/commitcheck.sh; \
49 fi
50
51cstyle:
52 @find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
53 ! -name '*.mod.c' -type f -exec scripts/cstyle.pl -cpP {} \+
54
55shellcheck:
56 @if type shellcheck > /dev/null 2>&1; then \
57 shellcheck --exclude=SC1090 --format=gcc \
58 $$(find scripts/*.sh -type f) \
59 $$(find cmd/zed/zed.d/*.sh -type f) \
60 $$(find cmd/zpool/zpool.d/* -executable); \
61 fi
62
63mancheck:
64 @if type mandoc > /dev/null 2>&1; then \
65 find ${top_srcdir}/man/man8 -type f -name 'zfs.8' \
66 -o -name 'zpool.8' -o -name 'zdb.8' \
67 -o -name 'zgenhostid.8' | \
68 xargs mandoc -Tlint -Werror; \
69 fi
70
71lint: cppcheck paxcheck
72
73cppcheck:
74 @if type cppcheck > /dev/null 2>&1; then \
75 cppcheck --quiet --force --error-exitcode=2 --inline-suppr \
76 --suppressions-list=.github/suppressions.txt \
77 -UHAVE_SSE2 -UHAVE_AVX512F -UHAVE_UIO_ZEROCOPY \
78 -UHAVE_DNLC ${top_srcdir}; \
79 fi
80
81paxcheck:
82 @if type scanelf > /dev/null 2>&1; then \
83 scripts/paxcheck.sh ${top_srcdir}; \
84 fi
85
86flake8:
87 @if type flake8 > /dev/null 2>&1; then \
88 flake8 ${top_srcdir}; \
89 fi
90
91ctags:
92 $(RM) tags
93 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
94
95etags:
96 $(RM) TAGS
97 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
98
99tags: ctags etags
100
101pkg: @DEFAULT_PACKAGE@
102pkg-dkms: @DEFAULT_PACKAGE@-dkms
103pkg-kmod: @DEFAULT_PACKAGE@-kmod
104pkg-utils: @DEFAULT_PACKAGE@-utils