Add --enable-debug-dmu-tx configure option
[zfs.git] / scripts / Makefile.am
1 SUBDIRS = zpool-config zpool-layout zpios-test zpios-profile
2
3 pkglibexecdir = $(libexecdir)/@PACKAGE@
4 dist_pkglibexec_SCRIPTS = \
5         $(top_builddir)/scripts/common.sh \
6         $(top_srcdir)/scripts/zconfig.sh \
7         $(top_srcdir)/scripts/zfault.sh \
8         $(top_srcdir)/scripts/zfs.sh \
9         $(top_srcdir)/scripts/zpool-create.sh \
10         $(top_srcdir)/scripts/zpios.sh \
11         $(top_srcdir)/scripts/zpios-sanity.sh \
12         $(top_srcdir)/scripts/zpios-survey.sh
13
14 ZFS=$(top_builddir)/scripts/zfs.sh
15 ZCONFIG=$(top_builddir)/scripts/zconfig.sh
16 ZFAULT=$(top_builddir)/scripts/zfault.sh
17 ZTEST=$(top_builddir)/cmd/ztest/ztest
18 ZPIOS_SANITY=$(top_builddir)/scripts/zpios-sanity.sh
19
20 all:
21         @list='$(dist_pkglibexec_SCRIPTS)'; \
22         for file in $$list; do \
23                 link=$$(basename $$file); \
24                 if [ ! -e $$link ]; then \
25                         $(LN_S) $$file $$link; \
26                 fi \
27         done
28
29 clean:
30         @list='$(dist_pkglibexec_SCRIPTS)'; \
31         for file in $$list; do \
32                 link=$$(basename $$file); \
33                 if [ -L $$link ]; then \
34                         $(RM) $$link; \
35                 fi \
36         done
37
38 check:
39         @$(ZFS) -u
40         @echo
41         @echo -n "===================================="
42         @echo -n " ZTEST "
43         @echo    "===================================="
44         @echo
45         @$(ZFS)
46         @$(ZTEST) -V
47         @$(ZFS) -u
48         @echo
49         @echo
50         @echo -n "==================================="
51         @echo -n " ZCONFIG "
52         @echo    "==================================="
53         @echo
54         @$(ZCONFIG) -c
55         @echo
56         @echo -n "==================================="
57         @echo -n " ZFAULT "
58         @echo    "==================================="
59         @echo
60         @$(ZFAULT) -c
61         @echo
62         @echo -n "===================================="
63         @echo -n " ZPIOS "
64         @echo    "===================================="
65         @echo
66         @$(ZFS)
67         @$(ZPIOS_SANITY)
68         @$(ZFS) -u
69         @echo