1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

WITH_META_MODE: End each ERROR_CMD CMD line with ';'.

This makes it easier to debug multi-line command failures.

X-MFC-With:	r319862
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Bryan Drewery 2017-06-16 21:48:42 +00:00
parent 2bc743eea1
commit 7970b89399
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320030

View File

@ -13,7 +13,7 @@ MAKE_PRINT_VAR_ON_ERROR += \
.MAKE.MODE .MAKE.MODE
.endif .endif
_ERROR_CMD_EXEC= ${sed -n '/^CMD/s,^CMD ,,p' ${.ERROR_META_FILE}:L:sh} _ERROR_CMD_EXEC= ${sed -n '/^CMD/s,^CMD \(.*\),\1;,p' ${.ERROR_META_FILE}:L:sh}
_ERROR_CMD= ${!empty(.ERROR_META_FILE):?${_ERROR_CMD_EXEC}:.PHONY} _ERROR_CMD= ${!empty(.ERROR_META_FILE):?${_ERROR_CMD_EXEC}:.PHONY}
MAKE_PRINT_VAR_ON_ERROR+= \ MAKE_PRINT_VAR_ON_ERROR+= \
_ERROR_CMD \ _ERROR_CMD \