git: <bsd.dep.mk>: Fix issues in generating depend files
Aaron LI
aly at crater.dragonflybsd.org
Fri Apr 3 17:08:19 PDT 2026
commit b29ec2485c291a0e8e87dccc7f8ab5f9046eabce
Author: Aaron LI <aly at aaronly.me>
Date: Fri Apr 3 19:14:49 2026 +0800
<bsd.dep.mk>: Fix issues in generating depend files
* Remove the '> ${.TARGET}' command so that a repeat 'make depend' would
not falsely succeed.
Before this change, an empty '.depend' file would be created even if
the mkdep(1) fails, and then another 'make depend' (e.g., from
'make quickworld') would skip creating the depend files and thus
falsely succeed.
* Remove the '-' prefix from the 'rm -f ${.TARGET}' command. This fixes
that the mkdep(1) failure was ignored in the jobs mode (i.e., make -jN).
In the jobs mode, all the commands of a target is executed by one
single shell instance. When the shell does not have ErrCtl enabled
(which is the default), the '-' prefix affects the entire job rather
than specific commands prefixed with '-'. See make(1) for more
details.
After this change, 'make depend' behaves the same for jobs mode and
compatibility (non-jobs) mode.
Discussed-with: swildner
Summary of changes:
share/mk/bsd.dep.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b29ec2485c291a0e8e87dccc7f8ab5f9046eabce
--
DragonFly BSD source repository
More information about the Commits
mailing list