]> git.proxmox.com Git - mirror_zfs.git/blame_incremental - Makefile.am
zfs(8) fixes
[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
26distclean-local::
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)
37
38dist-hook:
39 sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
40 $(distdir)/META
41
42checkstyle: cstyle shellcheck flake8
43
44cstyle:
45 @find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
46 ! -name '*.mod.c' -type f -exec scripts/cstyle.pl -cpP {} \+
47
48shellcheck:
49 @if type shellcheck > /dev/null 2>&1; then \
50 shellcheck --exclude=SC1090 --format gcc scripts/paxcheck.sh \
51 scripts/zloop.sh \
52 scripts/zfs-tests.sh \
53 scripts/zfs.sh; \
54 (find cmd/zed/zed.d/*.sh -type f) | \
55 grep -v 'zfs-script-config' | \
56 while read file; do \
57 shellcheck --exclude=SC1090 --format gcc "$$file"; \
58 done; \
59 fi
60
61lint: cppcheck paxcheck
62
63cppcheck:
64 @if type cppcheck > /dev/null 2>&1; then \
65 cppcheck --inline-suppr --quiet --force --error-exitcode=2 \
66 ${top_srcdir}; \
67 fi
68
69paxcheck:
70 @if type scanelf > /dev/null 2>&1; then \
71 scripts/paxcheck.sh ${top_srcdir}; \
72 fi
73
74flake8:
75 @if type flake8 > /dev/null 2>&1; then \
76 flake8 ${top_srcdir}; \
77 fi
78
79ctags:
80 $(RM) tags
81 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
82
83etags:
84 $(RM) TAGS
85 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
86
87tags: ctags etags
88
89pkg: @DEFAULT_PACKAGE@
90pkg-kmod: @DEFAULT_PACKAGE@-kmod
91pkg-utils: @DEFAULT_PACKAGE@-utils