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