From f92f3e5ed1e887f7f2afc3733747f62b2b781b2e Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 24 Apr 2002 11:26:19 +0000 Subject: The install.debug and reinstall.debug targets are needed solely to build kernel and kernel modules so stop supporting them in bsd.subdir.mk and reimplement them in kern.post.mk and kmod.mk as special versions of the install and reinstall targets, and only define them if DEBUG is also defined (when debug versions are really built). Prompted by: bde --- sys/conf/kmod.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/conf/kmod.mk') diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 4a97f96..74381f2 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -218,11 +218,16 @@ _INSTALLFLAGS:= ${INSTALLFLAGS} _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} .endfor +.if defined(DEBUG) install.debug: - ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ - ${_INSTALLFLAGS} ${FULLPROG} ${DESTDIR}${KMODDIR}/ + cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG install +.endif realinstall: +.if defined(DEBUG) && defined(INSTALL_DEBUG) + ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ + ${_INSTALLFLAGS} ${FULLPROG} ${DESTDIR}${KMODDIR}/ +.else ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/ .if defined(LINKS) && !empty(LINKS) @@ -250,6 +255,7 @@ realinstall: .if !defined(NO_XREF) -kldxref ${DESTDIR}${KMODDIR} .endif +.endif install: afterinstall afterinstall: realinstall -- cgit v1.1