mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Only install secondary components if the destination directory exists.
This may be a WIP, but `make release' needs it sooner than later.
This commit is contained in:
parent
9de54ba513
commit
229edd6df7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66620
@ -8,13 +8,17 @@ SRCS= ibcs2_errno.c ibcs2_ipc.c ibcs2_stat.c ibcs2_misc.c \
|
||||
ibcs2_isc.c ibcs2_isc_sysent.c \
|
||||
ibcs2_msg.c ibcs2_other.c ibcs2_sysi86.c ibcs2_sysvec.c \
|
||||
vnode_if.h opt_spx_hack.h
|
||||
.if exists(${DESTDIR}/usr/share/man/man8)
|
||||
MAN8= ibcs2.8
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DCOMPAT_IBCS2
|
||||
EXPORT_SYMS= _ibcs2_mod _ibcs2_emul_path _ibcs2_svr3_sysvec
|
||||
|
||||
.if exists(${DESTDIR}/usr/bin)
|
||||
afterinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/ibcs2.sh ${DESTDIR}/usr/sbin/ibcs2
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -3,10 +3,14 @@
|
||||
.PATH: ${.CURDIR}/../../isa
|
||||
KMOD = joy
|
||||
SRCS = bus_if.h device_if.h isa_if.h joy.c
|
||||
.if exists(${DESTDIR}/usr/share/man/man8)
|
||||
MAN8 = joy.8
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/usr/bin)
|
||||
afterinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/joy.sh ${DESTDIR}/usr/bin/joy
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -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>
|
||||
|
@ -12,7 +12,9 @@ SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_svr4.h opt_vmpage.h \
|
||||
svr4_stream.c svr4_socket.c svr4_sockio.c svr4_machdep.c \
|
||||
svr4_resource.c svr4_ipc.c
|
||||
OBJS= svr4_locore.o
|
||||
.if exists(${DESTDIR}/usr/share/man/man8)
|
||||
MAN8= svr4.8
|
||||
.endif
|
||||
|
||||
EXPORT_SYMS=_svr4_mod
|
||||
CLEANFILES= svr4_assym.h svr4_genassym.o
|
||||
@ -39,8 +41,10 @@ opt_svr4.h:
|
||||
echo "#define DEBUG_SVR4 1" >> opt_svr4.h
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/usr/bin)
|
||||
afterinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/svr4.sh ${DESTDIR}/usr/sbin/svr4
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user