| @@ -1,13 +1,13 @@ | | | @@ -1,13 +1,13 @@ |
1 | # $NetBSD: Makefile.err-msgs-h,v 1.1 2021/01/03 18:48:37 rillig Exp $ | | 1 | # $NetBSD: Makefile.err-msgs-h,v 1.2 2021/01/03 20:44:54 rillig Exp $ |
2 | | | 2 | |
3 | err-msgs.h: err.c Makefile.err-msgs-h | | 3 | err-msgs.h: err.c Makefile.err-msgs-h |
4 | ${_MKTARGET_CREATE} | | 4 | ${_MKTARGET_CREATE} |
5 | sp='[[:space:]]*'; \ | | 5 | sp='[[:space:]]*'; \ |
6 | from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \ | | 6 | from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \ |
7 | ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < err.c > ${.TARGET}.tmp | | 7 | ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < ${.ALLSRC:M*err.c} > ${.TARGET}.tmp |
8 | mv -f ${.TARGET}.tmp ${.TARGET} | | 8 | mv -f ${.TARGET}.tmp ${.TARGET} |
9 | | | 9 | |
10 | CLEANFILES+= err-msgs.h | | 10 | CLEANFILES+= err-msgs.h |
11 | DPSRCS+= err-msgs.h | | 11 | DPSRCS+= err-msgs.h |
12 | | | 12 | |
13 | externs1.h: err-msgs.h | | 13 | externs1.h: err-msgs.h |