Even when only building kmods process the scripts directory. This
way the common.sh script will be generated and the zfs.sh script
can be used to load/unload the in-tree kernel modules.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #14027
Closes #14051
include $(top_srcdir)/config/CppCheck.am
include $(top_srcdir)/config/Shellcheck.am
include $(top_srcdir)/config/Substfiles.am
+include $(top_srcdir)/scripts/Makefile.am
ACLOCAL_AMFLAGS = -I config
include $(srcdir)/%D%/etc/Makefile.am
include $(srcdir)/%D%/lib/Makefile.am
include $(srcdir)/%D%/man/Makefile.am
-include $(srcdir)/%D%/scripts/Makefile.am
include $(srcdir)/%D%/tests/Makefile.am
if BUILD_LINUX
include $(srcdir)/%D%/udev/Makefile.am
scriptsdir = $(datadir)/$(PACKAGE)
-dist_scripts_SCRIPTS = \
- %D%/zfs-helpers.sh \
- %D%/zfs-tests.sh \
- %D%/zfs.sh \
- %D%/zimport.sh \
- %D%/zloop.sh
-
dist_noinst_SCRIPTS = \
%D%/commitcheck.sh \
%D%/common.sh.in \
%D%/paxcheck.sh \
%D%/zfs-tests-color.sh
+scripts_scripts = \
+ %D%/zfs-helpers.sh \
+ %D%/zfs-tests.sh \
+ %D%/zfs.sh \
+ %D%/zimport.sh \
+ %D%/zloop.sh
+
+if CONFIG_USER
+dist_scripts_SCRIPTS = $(scripts_scripts)
+else
+dist_noinst_SCRIPTS += $(scripts_scripts)
+endif
+
dist_noinst_DATA += \
%D%/cstyle.pl \
%D%/enum-extract.pl \