mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
WITH_META_MODE: Avoid "building" .depend if there is nothing to do.
This avoids 'Building /path/.depend' when it will not actually produce a file. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
9051825205
commit
987c375f87
1 changed files with 3 additions and 1 deletions
|
|
@ -246,7 +246,9 @@ DPSRCS+= ${SRCS}
|
|||
# beforedepend/_EXTRADEPEND/afterdepend. The target is kept
|
||||
# to allow 'make depend' to generate files.
|
||||
${DEPENDFILE}: ${DPSRCS}
|
||||
.if !empty(.MAKE.MODE:Mmeta) || exists(${.OBJDIR}/${DEPENDFILE})
|
||||
.if exists(${.OBJDIR}/${DEPENDFILE}) || \
|
||||
((commands(beforedepend) || commands(_EXTRADEPEND) || \
|
||||
commands(afterdepend)) && !empty(.MAKE.MODE:Mmeta))
|
||||
rm -f ${DEPENDFILE}
|
||||
.endif
|
||||
.if target(_EXTRADEPEND)
|
||||
|
|
|
|||
Loading…
Reference in a new issue