diff options
author | ru <ru@FreeBSD.org> | 2002-04-24 11:26:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-24 11:26:19 +0000 |
commit | f92f3e5ed1e887f7f2afc3733747f62b2b781b2e (patch) | |
tree | b89e723a9364853ae305f5a55acba123eb42b5f9 /sys/conf/kmod.mk | |
parent | 8e350a78b11b1b665281dd759b4804f22545895c (diff) | |
download | FreeBSD-src-f92f3e5ed1e887f7f2afc3733747f62b2b781b2e.zip FreeBSD-src-f92f3e5ed1e887f7f2afc3733747f62b2b781b2e.tar.gz |
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
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r-- | sys/conf/kmod.mk | 10 |
1 files changed, 8 insertions, 2 deletions
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 |