The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/scripts/Makefile.am

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 scriptsdir = $(datadir)/$(PACKAGE)
    2 dist_noinst_SCRIPTS = \
    3         %D%/commitcheck.sh \
    4         %D%/common.sh.in \
    5         %D%/dkms.mkconf \
    6         %D%/dkms.postbuild \
    7         %D%/kmodtool \
    8         %D%/make_gitrev.sh \
    9         %D%/man-dates.sh \
   10         %D%/mancheck.sh \
   11         %D%/paxcheck.sh \
   12         %D%/zfs-tests-color.sh
   13 
   14 scripts_scripts = \
   15         %D%/zfs-helpers.sh \
   16         %D%/zfs-tests.sh \
   17         %D%/zfs.sh \
   18         %D%/zimport.sh \
   19         %D%/zloop.sh
   20 
   21 if CONFIG_USER
   22 dist_scripts_SCRIPTS = $(scripts_scripts)
   23 else
   24 dist_noinst_SCRIPTS += $(scripts_scripts)
   25 endif
   26 
   27 dist_noinst_DATA += \
   28         %D%/cstyle.pl \
   29         %D%/enum-extract.pl \
   30         %D%/zfs2zol-patch.sed \
   31         %D%/zol2zfs-patch.sed
   32 
   33 SHELLCHECKSCRIPTS += $(dist_scripts_SCRIPTS) $(dist_noinst_SCRIPTS)
   34 
   35 define SCRIPTS_EXTRA_ENVIRONMENT
   36 
   37 # Only required for in-tree use
   38 export INTREE="yes"
   39 export GDB="libtool --mode=execute gdb"
   40 export LDMOD=/sbin/insmod
   41 
   42 export CMD_DIR=$(abs_top_builddir)
   43 export UDEV_SCRIPT_DIR=$(abs_top_srcdir)/udev
   44 export UDEV_CMD_DIR=$(abs_top_builddir)/udev
   45 export UDEV_RULE_DIR=$(abs_top_builddir)/udev/rules.d
   46 export ZEDLET_ETC_DIR=$$CMD_DIR/cmd/zed/zed.d
   47 export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/cmd/zed/zed.d
   48 export ZPOOL_SCRIPT_DIR=$$CMD_DIR/cmd/zpool/zpool.d
   49 export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/cmd/zpool/zpool.d
   50 export ZPOOL_COMPAT_DIR=$$CMD_DIR/cmd/zpool/compatibility.d
   51 export CONTRIB_DIR=$(abs_top_builddir)/contrib
   52 export LIB_DIR=$(abs_top_builddir)/.libs
   53 export SYSCONF_DIR=$(abs_top_builddir)/etc
   54 
   55 export INSTALL_UDEV_DIR=$(udevdir)
   56 export INSTALL_UDEV_RULE_DIR=$(udevruledir)
   57 export INSTALL_MOUNT_HELPER_DIR=$(mounthelperdir)
   58 export INSTALL_SYSCONF_DIR=$(sysconfdir)
   59 export INSTALL_PYTHON_DIR=$(pythonsitedir)
   60 
   61 export KMOD_SPL=$(abs_top_builddir)/module/spl.ko
   62 export KMOD_ZFS=$(abs_top_builddir)/module/zfs.ko
   63 export KMOD_FREEBSD=$(abs_top_builddir)/module/openzfs.ko
   64 endef
   65 
   66 export SCRIPTS_EXTRA_ENVIRONMENT
   67 
   68 CLEANFILES += %D%/common.sh
   69 %D%/common.sh: %D%/common.sh.in Makefile
   70         -$(AM_V_at)$(MKDIR_P) $(@D)
   71         -$(AM_V_GEN)$(SED) -e '/^export BIN_DIR=/s|$$|$(abs_top_builddir)/tests/zfs-tests/bin|' \
   72                 -e '/^export SBIN_DIR=/s|$$|$(abs_top_builddir)|' \
   73                 -e '/^export LIBEXEC_DIR=/s|$$|$(abs_top_builddir)|' \
   74                 -e '/^export ZTS_DIR=/s|$$|$(abs_top_srcdir)/tests|' \
   75                 -e '/^export SCRIPT_DIR=/s|$$|$(abs_top_srcdir)/scripts|' \
   76                 $< >$@
   77         -$(AM_V_at)echo "$$SCRIPTS_EXTRA_ENVIRONMENT" >>$@
   78 
   79 ALL_LOCAL += scripts-all-local
   80 scripts-all-local: %D%/common.sh
   81         -SCRIPT_COMMON=$< $(srcdir)/%D%/zfs-tests.sh -c
   82 
   83 CLEAN_LOCAL += scripts-clean-local
   84 scripts-clean-local:
   85         -$(RM) -r tests/zfs-tests/bin/
   86 
   87 INSTALL_DATA_HOOKS += scripts-install-data-hook
   88 scripts-install-data-hook: %D%/common.sh.in Makefile
   89         -$(SED) -e '/^export BIN_DIR=/s|$$|$(bindir)|' \
   90                 -e '/^export SBIN_DIR=/s|$$|$(sbindir)|' \
   91                 -e '/^export LIBEXEC_DIR=/s|$$|$(zfsexecdir)|' \
   92                 -e '/^export ZTS_DIR=/s|$$|$(datadir)/$(PACKAGE)|' \
   93                 -e '/^export SCRIPT_DIR=/s|$$|$(datadir)/$(PACKAGE)|' \
   94                 $< >$(DESTDIR)$(datadir)/$(PACKAGE)/common.sh

Cache object: 91e70341c42816d31f8d2979e9288115


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.