aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-05-05 06:00:08 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-05-05 06:00:08 +0000
commitdf07109126764c45fa645541d506d9273129463a (patch)
treec62a8b659a6bf1cc5b9e47ded76f4e14a61243a8 /sys
parentfe27ded896517aecd05b61b7d0ba165a8fa6c48e (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/Makefile.alpha12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha
index 4c9bdb02a625..719a49e5ea91 100644
--- a/sys/conf/Makefile.alpha
+++ b/sys/conf/Makefile.alpha
@@ -120,6 +120,8 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o
${SYSTEM_LD}
${SYSTEM_LD_TAIL}
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
+ @mkdir -p ${.CURDIR}/modules
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj
cd ${.CURDIR}/../../modules && ${MAKE} all
.endif
@@ -140,7 +142,7 @@ clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
- cd ${.CURDIR}/../../modules && ${MAKE} clean
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} clean
.endif
#lint: /tmp param.c
@@ -237,13 +239,15 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \
rm -f .depend
mv -f .newdep .depend
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
+ @mkdir -p ${.CURDIR}/modules
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj
cd ${.CURDIR}/../../modules && ${MAKE} depend
.endif
cleandepend:
rm -f .depend
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
- cd ${.CURDIR}/../../modules && ${MAKE} cleandepend
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} cleandepend
.endif
links:
@@ -272,14 +276,14 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
- cd ${.CURDIR}/../../modules && ${MAKE} install
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install
.endif
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules)
- cd ${.CURDIR}/../../modules && ${MAKE} install
+ cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install
.endif
config.o: