]> git.proxmox.com Git - mirror_zfs-debian.git/blob - scripts/Makefile.am
Retire zpool_id infrastructure
[mirror_zfs-debian.git] / scripts / Makefile.am
1 SUBDIRS = zpool-config 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 $(top_srcdir)/scripts/smb.sh
14
15 ZFS=$(top_builddir)/scripts/zfs.sh
16 ZCONFIG=$(top_builddir)/scripts/zconfig.sh
17 ZFAULT=$(top_builddir)/scripts/zfault.sh
18 ZTEST=$(top_builddir)/cmd/ztest/ztest
19 ZPIOS_SANITY=$(top_builddir)/scripts/zpios-sanity.sh
20
21 all:
22 @list='$(dist_pkglibexec_SCRIPTS)'; \
23 for file in $$list; do \
24 link=$$(basename $$file); \
25 if [ ! -e $$link ]; then \
26 $(LN_S) $$file $$link; \
27 fi \
28 done
29
30 clean:
31 @list='$(dist_pkglibexec_SCRIPTS)'; \
32 for file in $$list; do \
33 link=$$(basename $$file); \
34 if [ -L $$link ]; then \
35 $(RM) $$link; \
36 fi \
37 done
38
39 check:
40 @$(ZFS) -u
41 @echo
42 @echo -n "===================================="
43 @echo -n " ZTEST "
44 @echo "===================================="
45 @echo
46 @$(ZFS)
47 @$(ZTEST) -V
48 @$(ZFS) -u
49 @echo
50 @echo
51 @echo -n "==================================="
52 @echo -n " ZCONFIG "
53 @echo "==================================="
54 @echo
55 @$(ZCONFIG) -c
56 @echo
57 @echo -n "==================================="
58 @echo -n " ZFAULT "
59 @echo "==================================="
60 @echo
61 @$(ZFAULT) -c
62 @echo
63 @echo -n "===================================="
64 @echo -n " ZPIOS "
65 @echo "===================================="
66 @echo
67 @$(ZFS)
68 @$(ZPIOS_SANITY)
69 @$(ZFS) -u
70 @echo