Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf sys/conf/link.mk: clean up
details: https://anonhg.NetBSD.org/src/rev/0cd428735207
branches: trunk
changeset: 369681:0cd428735207
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 27 21:49:33 2022 +0000
description:
sys/conf/link.mk: clean up
The modifier ':C' did not need the modifier 'g', as there couldn't ever
be more than one match per word. Using the modifier ':from=to' is easier
to read.
Align the variable assignments. There was no point in having 3 different
alignment styles in the same file.
Remove underscore from .for iteration variable, as it is not needed.
No functional change.
diffstat:
sys/conf/lint.mk | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r fff627aa275b -r 0cd428735207 sys/conf/lint.mk
--- a/sys/conf/lint.mk Sat Aug 27 21:46:47 2022 +0000
+++ b/sys/conf/lint.mk Sat Aug 27 21:49:33 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: lint.mk,v 1.4 2021/05/02 20:11:43 rillig Exp $
+# $NetBSD: lint.mk,v 1.5 2022/08/27 21:49:33 rillig Exp $
##
## lint
@@ -7,22 +7,22 @@
.if !target(lint)
.PATH: $S
ALLSFILES?= ${MD_SFILES} ${SFILES}
-LINTSTUBS?= ${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}
+LINTSTUBS?= ${ALLSFILES:T:R:%=LintStub_%.c}
KERNLINTFLAGS?= -bceghnxzFS
NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -o $@ -i $<
-_lsrc=${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
-LOBJS?= ${_lsrc:T:S/.c$/.ln/g} ${LIBKERNLN} ${SYSLIBCOMPATLN}
+_lsrc= ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
+LOBJS?= ${_lsrc:T:.c=.ln} ${LIBKERNLN} ${SYSLIBCOMPATLN}
-.for _sfile in ${ALLSFILES}
-LintStub_${_sfile:T:R}.c: ${_sfile} assym.h
+.for sfile in ${ALLSFILES}
+LintStub_${sfile:T:R}.c: ${sfile} assym.h
${_MKTARGET_COMPILE}
- ${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${_sfile} | \
+ ${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${sfile} | \
${TOOL_AWK} -f $S/kern/genlintstub.awk >${.TARGET}
.endfor
-.for _cfile in ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
-${_cfile:T:R}.ln: ${_cfile}
+.for cfile in ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
+${cfile:T:R}.ln: ${cfile}
${_MKTARGET_COMPILE}
${NORMAL_LN}
.endfor
Home |
Main Index |
Thread Index |
Old Index