2010-09-16 02:32:27 +04:00
|
|
|
SUBDIRS = zpool-config zpool-layout zpios-test zpios-profile
|
2010-09-05 00:26:23 +04:00
|
|
|
|
2010-08-26 22:22:58 +04:00
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
2010-09-05 00:26:23 +04:00
|
|
|
dist_pkglibexec_SCRIPTS = \
|
|
|
|
$(top_builddir)/scripts/common.sh \
|
|
|
|
$(top_srcdir)/scripts/zconfig.sh \
|
|
|
|
$(top_srcdir)/scripts/zfs.sh \
|
|
|
|
$(top_srcdir)/scripts/zpool-create.sh \
|
|
|
|
$(top_srcdir)/scripts/zpios.sh \
|
|
|
|
$(top_srcdir)/scripts/zpios-sanity.sh \
|
|
|
|
$(top_srcdir)/scripts/zpios-survey.sh
|
|
|
|
|
|
|
|
ZFS=$(top_builddir)/scripts/zfs.sh
|
|
|
|
ZCONFIG=$(top_builddir)/scripts/zconfig.sh
|
|
|
|
ZTEST=$(top_builddir)/cmd/ztest/ztest
|
|
|
|
ZPIOS_SANITY=$(top_builddir)/scripts/zpios-sanity.sh
|
|
|
|
|
|
|
|
all:
|
|
|
|
@list='$(dist_pkglibexec_SCRIPTS)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
link=$$(basename $$file); \
|
|
|
|
if [ ! -e $$link ]; then \
|
|
|
|
$(LN_S) $$file $$link; \
|
|
|
|
fi \
|
|
|
|
done
|
2010-08-26 22:22:58 +04:00
|
|
|
|
2010-09-05 00:26:23 +04:00
|
|
|
clean:
|
|
|
|
@list='$(dist_pkglibexec_SCRIPTS)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
link=$$(basename $$file); \
|
|
|
|
if [ -L $$link ]; then \
|
|
|
|
$(RM) $$link; \
|
|
|
|
fi \
|
|
|
|
done
|
2010-08-26 22:22:58 +04:00
|
|
|
|
|
|
|
check:
|
|
|
|
@echo
|
|
|
|
@echo -n "===================================="
|
|
|
|
@echo -n " ZTEST "
|
|
|
|
@echo "===================================="
|
|
|
|
@echo
|
|
|
|
@$(ZFS)
|
|
|
|
@$(ZTEST) -V
|
|
|
|
@$(ZFS) -u
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo -n "==================================="
|
|
|
|
@echo -n " ZCONFIG "
|
|
|
|
@echo "==================================="
|
|
|
|
@echo
|
|
|
|
@$(ZCONFIG)
|
|
|
|
@echo
|
2010-08-26 22:58:00 +04:00
|
|
|
@echo -n "===================================="
|
|
|
|
@echo -n " ZPIOS "
|
|
|
|
@echo "===================================="
|
|
|
|
@echo
|
|
|
|
@$(ZFS)
|
|
|
|
@$(ZPIOS_SANITY)
|
|
|
|
@$(ZFS) -u
|
|
|
|
@echo
|