diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-05-09 10:39:38 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-05-09 10:39:38 +0000 |
commit | aae396953af41d23e93ccea6afe209a4136261b0 (patch) | |
tree | ff012567aa97e5363986d54e250ce31bed4dc285 /sys/conf/Makefile.i386 | |
parent | 95de75613b516a00df84f03135e205a51562e168 (diff) | |
download | FreeBSD-src-aae396953af41d23e93ccea6afe209a4136261b0.zip FreeBSD-src-aae396953af41d23e93ccea6afe209a4136261b0.tar.gz |
Create a separate target for the 'modules'. Without this the modules
are only rebuilt if the kernel has changed as well.
While there make 'all' and 'modules' a PHONY target.
Diffstat (limited to 'sys/conf/Makefile.i386')
-rw-r--r-- | sys/conf/Makefile.i386 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index 2fe7d10..74ade06 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -103,6 +103,8 @@ SYSTEM_DEP+= $S/conf/ldscript.$M %CLEAN +.PHONY: all modules + all: ${KERNEL} .if !defined(DEBUG) @@ -118,7 +120,11 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @echo linking ${.TARGET} ${SYSTEM_LD} ${SYSTEM_LD_TAIL} + .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) +all: modules + +modules: @mkdir -p ${.CURDIR}/modules cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all |