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.
This commit is contained in:
n_hibma 2000-05-09 10:39:38 +00:00
parent 95de75613b
commit aae396953a
3 changed files with 17 additions and 0 deletions

View File

@ -104,6 +104,7 @@ SYSTEM_DEP+= $S/conf/ldscript.$M
%CLEAN
.PHONY: all modules
all: ${KERNEL}
.if !defined(DEBUG)
@ -119,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 && ${MAKE} all

View File

@ -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

View File

@ -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