Add build system
[zfs.git] / scripts / Makefile.am
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
new file mode 100644 (file)
index 0000000..a1dfc38
--- /dev/null
@@ -0,0 +1,29 @@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+nobase_pkglibexec_SCRIPTS  = common.sh
+nobase_pkglibexec_SCRIPTS += zconfig.sh
+nobase_pkglibexec_SCRIPTS += zfs.sh
+nobase_pkglibexec_SCRIPTS += zpool-create.sh
+nobase_pkglibexec_SCRIPTS += zpool-config/*
+EXTRA_DIST = zfs-update.sh $(nobase_pkglibexec_SCRIPTS)
+
+ZFS=${top_srcdir}/scripts/zfs.sh
+ZCONFIG=${top_srcdir}/scripts/zconfig.sh
+ZTEST=${top_builddir}/cmd/ztest/ztest
+
+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