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:
parent
95de75613b
commit
aae396953a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user