Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: inline separate Makefile



details:   https://anonhg.NetBSD.org/src/rev/9da6e9d7cd47
branches:  trunk
changeset: 373391:9da6e9d7cd47
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Feb 06 20:26:05 2023 +0000

description:
lint: inline separate Makefile

diffstat:

 usr.bin/xlint/lint1/Makefile            |  15 +++++++++++++--
 usr.bin/xlint/lint1/Makefile.err-msgs-h |  14 --------------
 2 files changed, 13 insertions(+), 16 deletions(-)

diffs (47 lines):

diff -r 19a343785c59 -r 9da6e9d7cd47 usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile      Mon Feb 06 13:30:02 2023 +0000
+++ b/usr.bin/xlint/lint1/Makefile      Mon Feb 06 20:26:05 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.92 2022/07/05 22:50:41 rillig Exp $
+#      $NetBSD: Makefile,v 1.93 2023/02/06 20:26:05 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -76,7 +76,18 @@
 DPADD+=                ${LIBL}
 .endif
 
-.include "Makefile.err-msgs-h"
+err-msgs.h: err.c
+       ${_MKTARGET_CREATE}
+       sp='[[:space:]]*'; \
+       from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\(Q*[0-9][0-9]*\)$$sp\*/\$$"; \
+       ${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
+DPSRCS+=       err-msgs.h
+CPPFLAGS+=     -I.
+
+externs1.h: err-msgs.h
 ${SRCS:Nerr.c}: err-msgs.h
 
 add-test: .PHONY
diff -r 19a343785c59 -r 9da6e9d7cd47 usr.bin/xlint/lint1/Makefile.err-msgs-h
--- a/usr.bin/xlint/lint1/Makefile.err-msgs-h   Mon Feb 06 13:30:02 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile.err-msgs-h,v 1.4 2022/07/05 22:50:41 rillig Exp $
-
-err-msgs.h: err.c Makefile.err-msgs-h
-       ${_MKTARGET_CREATE}
-       sp='[[:space:]]*'; \
-       from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\(Q*[0-9][0-9]*\)$$sp\*/\$$"; \
-       ${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
-DPSRCS+=       err-msgs.h
-CPPFLAGS+=     -I.
-
-externs1.h: err-msgs.h



Home | Main Index | Thread Index | Old Index