libsys: add guards to MD manpages

This avoids duplicate installations which fail packaging tests.

Reported by:	emaste
This commit is contained in:
Brooks Davis 2024-02-09 17:21:15 +00:00
parent aa3b7a2fbc
commit 1995ea1ea2
2 changed files with 4 additions and 0 deletions

View File

@ -5,9 +5,11 @@ SRCS+= i386_get_fsbase.c i386_get_gsbase.c i386_get_ioperm.c i386_get_ldt.c \
MDASM= vfork.S cerror.S getcontext.S syscall.S
.if ${LIB} == "sys"
MAN+= i386_get_ioperm.2 i386_get_ldt.2 i386_vm86.2
MAN+= i386_set_watch.3
MLINKS+=i386_get_ioperm.2 i386_set_ioperm.2
MLINKS+=i386_get_ldt.2 i386_set_ldt.2
MLINKS+=i386_set_watch.3 i386_clr_watch.3
.endif # ${LIB} == "sys"

View File

@ -5,8 +5,10 @@ SRCS+= \
pkru.c \
sched_getcpu_x86.c
.if ${LIB} == "sys"
MAN+= \
pkru.3
.endif # ${LIB} == "sys"
# Note: vdso support for hyperv only on amd64
.if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no"