ZTS: pool_checkpoint improvements
[zfs.git] / scripts / Makefile.am
blobf59826fe6bc87241063e25e8f53873f308bead01
1 pkgdatadir = $(datadir)/@PACKAGE@
3 dist_pkgdata_SCRIPTS = \
4         zimport.sh \
5         zfs.sh \
6         zfs-tests.sh \
7         zloop.sh \
8         zfs-helpers.sh
10 EXTRA_DIST = \
11         commitcheck.sh \
12         common.sh.in \
13         cstyle.pl \
14         dkms.mkconf \
15         dkms.postbuild \
16         enum-extract.pl \
17         kmodtool \
18         make_gitrev.sh \
19         man-dates.sh \
20         paxcheck.sh \
21         zfs2zol-patch.sed \
22         zol2zfs-patch.sed
24 define EXTRA_ENVIRONMENT
26 # Only required for in-tree use
27 export INTREE="yes"
28 export GDB="libtool --mode=execute gdb"
29 export LDMOD=/sbin/insmod
31 export CMD_DIR=@abs_top_builddir@/cmd
32 export UDEV_RULE_DIR=@abs_top_builddir@/udev/rules.d
33 export ZEDLET_ETC_DIR=$$CMD_DIR/zed/zed.d
34 export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/zed/zed.d
35 export ZPOOL_SCRIPT_DIR=$$CMD_DIR/zpool/zpool.d
36 export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/zpool/zpool.d
37 export ZPOOL_COMPAT_DIR=$$CMD_DIR/zpool/compatibility.d
38 export CONTRIB_DIR=@abs_top_builddir@/contrib
39 export LIB_DIR=@abs_top_builddir@/lib
40 export SYSCONF_DIR=@abs_top_builddir@/etc
42 export INSTALL_UDEV_DIR=@udevdir@
43 export INSTALL_UDEV_RULE_DIR=@udevruledir@
44 export INSTALL_MOUNT_HELPER_DIR=@mounthelperdir@
45 export INSTALL_SYSCONF_DIR=@sysconfdir@
46 export INSTALL_PYTHON_DIR=@pythonsitedir@
48 export KMOD_SPL=@abs_top_builddir@/module/spl/spl.ko
49 export KMOD_ZAVL=@abs_top_builddir@/module/avl/zavl.ko
50 export KMOD_ZNVPAIR=@abs_top_builddir@/module/nvpair/znvpair.ko
51 export KMOD_ZUNICODE=@abs_top_builddir@/module/unicode/zunicode.ko
52 export KMOD_ZCOMMON=@abs_top_builddir@/module/zcommon/zcommon.ko
53 export KMOD_ZLUA=@abs_top_builddir@/module/lua/zlua.ko
54 export KMOD_ICP=@abs_top_builddir@/module/icp/icp.ko
55 export KMOD_ZFS=@abs_top_builddir@/module/zfs/zfs.ko
56 export KMOD_FREEBSD=@abs_top_builddir@/module/openzfs.ko
57 export KMOD_ZZSTD=@abs_top_builddir@/module/zstd/zzstd.ko
58 endef
60 export EXTRA_ENVIRONMENT
62 all-local:
63         -$(SED) -e '\|^export BIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
64                 -e '\|^export SBIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
65                 -e '\|^export LIBEXEC_DIR=|s|$$|@abs_top_builddir@/bin|' \
66                 -e '\|^export ZTS_DIR=|s|$$|@abs_top_srcdir@/tests|' \
67                 -e '\|^export SCRIPT_DIR=|s|$$|@abs_top_srcdir@/scripts|' \
68                 $(abs_top_srcdir)/scripts/common.sh.in >common.sh
69         -echo "$$EXTRA_ENVIRONMENT" >>common.sh
71 clean-local:
72         -$(RM) common.sh
74 install-data-hook:
75         -$(SED) -e '\|^export BIN_DIR=|s|$$|@bindir@|' \
76                 -e '\|^export SBIN_DIR=|s|$$|@sbindir@|' \
77                 -e '\|^export LIBEXEC_DIR=|s|$$|@zfsexecdir@|' \
78                 -e '\|^export ZTS_DIR=|s|$$|@datadir@/@PACKAGE@|' \
79                 -e '\|^export SCRIPT_DIR=|s|$$|@datadir@/@PACKAGE@|' \
80                 $(abs_top_srcdir)/scripts/common.sh.in \
81                 >$(DESTDIR)$(datadir)/@PACKAGE@/common.sh