1 pkgdatadir = $(datadir)/@PACKAGE@
3 dist_pkgdata_SCRIPTS = \
4 $(top_srcdir)/scripts/zimport.sh \
5 $(top_srcdir)/scripts/zfs.sh \
6 $(top_srcdir)/scripts/zfs-tests.sh \
7 $(top_srcdir)/scripts/zloop.sh \
8 $(top_srcdir)/scripts/zfs-helpers.sh
22 define EXTRA_ENVIRONMENT
24 # Only required for in-tree use
26 export GDB="/usr/bin/libtool --mode=execute gdb"
27 export LDMOD=/sbin/insmod
29 export CMD_DIR=@abs_top_builddir@/cmd
30 export UDEV_RULE_DIR=@abs_top_builddir@/udev/rules.d
31 export ZEDLET_ETC_DIR=$$CMD_DIR/zed/zed.d
32 export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/zed/zed.d
33 export ZPOOL_SCRIPT_DIR=$$CMD_DIR/zpool/zpool.d
34 export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/zpool/zpool.d
35 export CONTRIB_DIR=@abs_top_builddir@/contrib
36 export LIB_DIR=@abs_top_builddir@/lib
38 export INSTALL_UDEV_DIR=@udevdir@
39 export INSTALL_UDEV_RULE_DIR=@udevruledir@
40 export INSTALL_MOUNT_HELPER_DIR=@mounthelperdir@
41 export INSTALL_SYSCONF_DIR=@sysconfdir@
42 export INSTALL_PYTHON_DIR=@pythonsitedir@
44 export KMOD_SPL=@abs_top_builddir@/module/spl/spl.ko
45 export KMOD_ZAVL=@abs_top_builddir@/module/avl/zavl.ko
46 export KMOD_ZNVPAIR=@abs_top_builddir@/module/nvpair/znvpair.ko
47 export KMOD_ZUNICODE=@abs_top_builddir@/module/unicode/zunicode.ko
48 export KMOD_ZCOMMON=@abs_top_builddir@/module/zcommon/zcommon.ko
49 export KMOD_ZLUA=@abs_top_builddir@/module/lua/zlua.ko
50 export KMOD_ICP=@abs_top_builddir@/module/icp/icp.ko
51 export KMOD_ZFS=@abs_top_builddir@/module/zfs/zfs.ko
54 export EXTRA_ENVIRONMENT
57 -$(SED) -e '\|^export BIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
58 -e '\|^export SBIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
59 -e '\|^export ZTS_DIR=|s|$$|@abs_top_srcdir@/tests|' \
60 -e '\|^export SCRIPT_DIR=|s|$$|@abs_top_srcdir@/scripts|' \
61 common.sh.in >common.sh
62 -echo "$$EXTRA_ENVIRONMENT" >>common.sh
68 -$(SED) -e '\|^export BIN_DIR=|s|$$|@bindir@|' \
69 -e '\|^export SBIN_DIR=|s|$$|@sbindir@|' \
70 -e '\|^export ZTS_DIR=|s|$$|@datadir@/@PACKAGE@|' \
71 -e '\|^export SCRIPT_DIR=|s|$$|@datadir@/@PACKAGE@|' \
72 common.sh.in >$(DESTDIR)$(datadir)/@PACKAGE@/common.sh