From dba3dc7bdca9ff548ac53740068f2d9978c0f01b Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Mon, 17 Jun 2002 20:01:06 +0000 Subject: [PATCH] Use OBJDIR instead of CURDIR. This unbreaks loading modules through 'make load' if an object dir was, like it is used in /sys/modules. I.e. cd /sys/modules/umass make obj make make load works again without having to install the module. If no objdir was used the module in the current directory is used. --- sys/conf/kmod.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index d73af895cc2..f18110afa67 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -278,7 +278,7 @@ distribute: .if !target(load) load: ${PROG} - ${KMODLOAD} -v ${.CURDIR}/${KMOD}.ko + ${KMODLOAD} -v ${.OBJDIR}/${KMOD}.ko .endif .if !target(unload)