aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/spl
diff options
context:
space:
mode:
Diffstat (limited to 'include/os/freebsd/spl')
-rw-r--r--include/os/freebsd/spl/acl/Makefile.am5
-rw-r--r--include/os/freebsd/spl/rpc/Makefile.am9
-rw-r--r--include/os/freebsd/spl/sys/Makefile.am5
3 files changed, 12 insertions, 7 deletions
diff --git a/include/os/freebsd/spl/acl/Makefile.am b/include/os/freebsd/spl/acl/Makefile.am
index 4aabfd357..3028ebabe 100644
--- a/include/os/freebsd/spl/acl/Makefile.am
+++ b/include/os/freebsd/spl/acl/Makefile.am
@@ -1,4 +1,7 @@
KERNEL_H = \
acl_common.h
-EXTRA_DIST = $(KERNEL_H)
+if CONFIG_KERNEL
+kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/acl
+kernel_HEADERS = $(KERNEL_H)
+endif
diff --git a/include/os/freebsd/spl/rpc/Makefile.am b/include/os/freebsd/spl/rpc/Makefile.am
index 8bd6e9b09..13d804fce 100644
--- a/include/os/freebsd/spl/rpc/Makefile.am
+++ b/include/os/freebsd/spl/rpc/Makefile.am
@@ -1,8 +1,7 @@
-COMMON_H =
-
KERNEL_H = \
xdr.h
-USER_H =
-
-EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
+if CONFIG_KERNEL
+kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/rpc
+kernel_HEADERS = $(KERNEL_H)
+endif
diff --git a/include/os/freebsd/spl/sys/Makefile.am b/include/os/freebsd/spl/sys/Makefile.am
index ac80f68cd..c95c9d65a 100644
--- a/include/os/freebsd/spl/sys/Makefile.am
+++ b/include/os/freebsd/spl/sys/Makefile.am
@@ -69,4 +69,7 @@ KERNEL_H = \
zmod.h \
zone.h
-EXTRA_DIST = $(KERNEL_H)
+if CONFIG_KERNEL
+kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/sys
+kernel_HEADERS = $(KERNEL_H)
+endif