summaryrefslogtreecommitdiffstats
path: root/sys/modules/linux
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-10-04 07:20:24 +0000
committerobrien <obrien@FreeBSD.org>2000-10-04 07:20:24 +0000
commit6389b1b3b0767a93f3b9195c810be5b9148f6c8c (patch)
treeed3f7e0112859536f602cdbd8e26aaeeac134f87 /sys/modules/linux
parent469c6c2bf3df61a740589c19c7df4236de8e1535 (diff)
downloadFreeBSD-src-6389b1b3b0767a93f3b9195c810be5b9148f6c8c.zip
FreeBSD-src-6389b1b3b0767a93f3b9195c810be5b9148f6c8c.tar.gz
Only install secondary components if the destination directory exists.
This may be a WIP, but `make release' needs it sooner than later.
Diffstat (limited to 'sys/modules/linux')
-rw-r--r--sys/modules/linux/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index f101418..ef1e59b 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -10,7 +10,9 @@ SRCS= linux_file.c linux_ioctl.c linux_machdep.c linux_misc.c \
linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
OBJS= linux_locore.o
+.if exists(${DESTDIR}/usr/share/man/man8)
MAN8= linux.8
+.endif
.if ${MACHINE_ARCH} != "alpha"
SRCS+= imgact_linux.c linux_ipc.c
@@ -35,8 +37,10 @@ linux_genassym.o: linux_genassym.c linux.h @ machine
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h
+.if exists(${DESTDIR}/usr/bin)
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud