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
21 define EXTRA_ENVIRONMENT
23 # Only required for in-tree use
25 export GDB="/usr/bin/libtool --mode=execute gdb"
26 export LDMOD=/sbin/insmod
28 export CMD_DIR=@abs_top_builddir@/cmd
29 export UDEV_RULE_DIR=@abs_top_builddir@/udev/rules.d
30 export ZEDLET_ETC_DIR=$$CMD_DIR/zed/zed.d
31 export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/zed/zed.d
32 export ZPOOL_SCRIPT_DIR=$$CMD_DIR/zpool/zpool.d
33 export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/zpool/zpool.d
34 export CONTRIB_DIR=@abs_top_builddir@/contrib
35 export LIB_DIR=@abs_top_builddir@/lib
37 export INSTALL_UDEV_DIR=@udevdir@
38 export INSTALL_UDEV_RULE_DIR=@udevruledir@
39 export INSTALL_MOUNT_HELPER_DIR=@mounthelperdir@
40 export INSTALL_SYSCONF_DIR=@sysconfdir@
41 export INSTALL_PYTHON_DIR=@pythonsitedir@
43 export KMOD_SPL=@abs_top_builddir@/module/spl/spl.ko
44 export KMOD_ZAVL=@abs_top_builddir@/module/avl/zavl.ko
45 export KMOD_ZNVPAIR=@abs_top_builddir@/module/nvpair/znvpair.ko
46 export KMOD_ZUNICODE=@abs_top_builddir@/module/unicode/zunicode.ko
47 export KMOD_ZCOMMON=@abs_top_builddir@/module/zcommon/zcommon.ko
48 export KMOD_ZLUA=@abs_top_builddir@/module/lua/zlua.ko
49 export KMOD_ICP=@abs_top_builddir@/module/icp/icp.ko
50 export KMOD_ZFS=@abs_top_builddir@/module/zfs/zfs.ko
53 export EXTRA_ENVIRONMENT
56 -$(SED) -e '\|^export BIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
57 -e '\|^export SBIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
58 -e '\|^export ZTS_DIR=|s|$$|@abs_top_srcdir@/tests|' \
59 -e '\|^export SCRIPT_DIR=|s|$$|@abs_top_srcdir@/scripts|' \
60 common.sh.in >common.sh
61 -echo "$$EXTRA_ENVIRONMENT" >>common.sh
67 -$(SED) -e '\|^export BIN_DIR=|s|$$|@bindir@|' \
68 -e '\|^export SBIN_DIR=|s|$$|@sbindir@|' \
69 -e '\|^export ZTS_DIR=|s|$$|@datadir@/@PACKAGE@|' \
70 -e '\|^export SCRIPT_DIR=|s|$$|@datadir@/@PACKAGE@|' \
71 common.sh.in >$(DESTDIR)$(datadir)/@PACKAGE@/common.sh