]>
Commit | Line | Data |
---|---|---|
a5b4d635 | 1 | SUBDIRS = zpool-config zpool-layout zpios-test zpios-profile |
6283f55e | 2 | |
c9c0d073 | 3 | pkglibexecdir = $(libexecdir)/@PACKAGE@ |
6283f55e BB |
4 | dist_pkglibexec_SCRIPTS = \ |
5 | $(top_builddir)/scripts/common.sh \ | |
6 | $(top_srcdir)/scripts/zconfig.sh \ | |
0ee8118b | 7 | $(top_srcdir)/scripts/zfault.sh \ |
6283f55e BB |
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 | |
0ee8118b | 16 | ZFAULT=$(top_builddir)/scripts/zfault.sh |
6283f55e BB |
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 | |
c9c0d073 | 28 | |
6283f55e BB |
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 | |
c9c0d073 BB |
37 | |
38 | check: | |
7dc3830c | 39 | @$(ZFS) -u |
c9c0d073 BB |
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 | |
0ee8118b BB |
54 | @$(ZCONFIG) -c |
55 | @echo | |
56 | @echo -n "===================================" | |
57 | @echo -n " ZFAULT " | |
58 | @echo "===================================" | |
59 | @echo | |
60 | @$(ZFAULT) -c | |
c9c0d073 | 61 | @echo |
302ef151 BB |
62 | @echo -n "====================================" |
63 | @echo -n " ZPIOS " | |
64 | @echo "====================================" | |
65 | @echo | |
66 | @$(ZFS) | |
67 | @$(ZPIOS_SANITY) | |
68 | @$(ZFS) -u | |
69 | @echo |