Module Name: src
Committed By: rillig
Date: Sun Jan 3 20:44:55 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: Makefile.err-msgs-h
Log Message:
lint: fix code generation from err.c
That file does not need to be in the current directory.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/xlint/lint1/Makefile.err-msgs-h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/Makefile.err-msgs-h
diff -u src/usr.bin/xlint/lint1/Makefile.err-msgs-h:1.1 src/usr.bin/xlint/lint1/Makefile.err-msgs-h:1.2
--- src/usr.bin/xlint/lint1/Makefile.err-msgs-h:1.1 Sun Jan 3 18:48:37 2021
+++ src/usr.bin/xlint/lint1/Makefile.err-msgs-h Sun Jan 3 20:44:54 2021
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile.err-msgs-h,v 1.1 2021/01/03 18:48:37 rillig Exp $
+# $NetBSD: Makefile.err-msgs-h,v 1.2 2021/01/03 20:44:54 rillig Exp $
err-msgs.h: err.c Makefile.err-msgs-h
${_MKTARGET_CREATE}
sp='[[:space:]]*'; \
from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \
- ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < err.c > ${.TARGET}.tmp
+ ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < ${.ALLSRC:M*err.c} > ${.TARGET}.tmp
mv -f ${.TARGET}.tmp ${.TARGET}
CLEANFILES+= err-msgs.h