From 9cf99ff7cfcc12a629fe8fa33d2d0bec2a5a0d29 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 14 May 2002 07:49:12 +0000 Subject: Check that kldxref(8) exists before running it. --- sys/conf/kmod.mk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/conf') diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 7119824..d73af89 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -170,10 +170,6 @@ ${KMOD}.kld: ${OBJS} .endif .endif -.if !exists(/usr/sbin/kldxref) -NO_XREF=yes -.endif - _ILINKS=@ machine all: objwarn ${PROG} @@ -260,7 +256,10 @@ realinstall: done; true .endif .if !defined(NO_XREF) - -kldxref ${DESTDIR}${KMODDIR} + @if type kldxref >/dev/null 2>&1; then \ + ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ + kldxref ${DESTDIR}${KMODDIR}; \ + fi .endif .endif -- cgit v1.1