1 ACLOCAL_AMFLAGS = -I config
9 SUBDIRS += udev etc man scripts lib tests cmd contrib
14 extradir = @prefix@/src/zfs-$(VERSION)
15 extra_HEADERS = zfs.release.in zfs_config.h.in
17 kerneldir = @prefix@/src/zfs-$(VERSION)/$(LINUX_VERSION)
18 nodist_kernel_HEADERS = zfs.release zfs_config.h module/$(LINUX_SYMBOLS)
21 AUTOMAKE_OPTIONS = foreign
22 EXTRA_DIST = autogen.sh copy-builtin
23 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
24 EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE
27 -$(RM) -R autom4te*.cache
28 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
29 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
30 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
31 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
32 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
33 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
34 -o -name 'Makefile' -o -name 'Module.symvers' \
35 -o -name '*.order' -o -name '*.markers' \) \
36 -type f -print | xargs $(RM)
39 sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
42 checkstyle: cstyle shellcheck flake8 commitcheck
45 @if git rev-parse --git-dir > /dev/null 2>&1; then \
46 scripts/commitcheck.sh; \
50 @find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
51 ! -name '*.mod.c' -type f -exec scripts/cstyle.pl -cpP {} \+
54 @if type shellcheck > /dev/null 2>&1; then \
55 shellcheck --exclude=SC1090 --format=gcc scripts/paxcheck.sh \
57 scripts/zfs-tests.sh \
59 scripts/commitcheck.sh \
60 $$(find cmd/zed/zed.d/*.sh -type f); \
63 lint: cppcheck paxcheck
66 @if type cppcheck > /dev/null 2>&1; then \
67 cppcheck --inline-suppr --quiet --force --error-exitcode=2 \
72 @if type scanelf > /dev/null 2>&1; then \
73 scripts/paxcheck.sh ${top_srcdir}; \
77 @if type flake8 > /dev/null 2>&1; then \
78 flake8 ${top_srcdir}; \
83 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
87 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
91 pkg: @DEFAULT_PACKAGE@
92 pkg-kmod: @DEFAULT_PACKAGE@-kmod
93 pkg-utils: @DEFAULT_PACKAGE@-utils