c50a4e606c
that passing variables to recursive makes with :q works as expected. - Revert :Q to work as before. - Adjust makefiles that use recursive make to use :q Discussed on tech-toolchain@ XXX: pullup 8
15 lines
400 B
Makefile
15 lines
400 B
Makefile
# $NetBSD: varquote.mk,v 1.2 2018/05/27 01:14:51 christos Exp $
|
|
#
|
|
# Test VAR:q modifier
|
|
|
|
.if !defined(REPROFLAGS)
|
|
REPROFLAGS+= -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src
|
|
REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj$$=/usr/obj/\1'
|
|
all:
|
|
@${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:S/\$/&&/g:Q}
|
|
@${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:q}
|
|
.else
|
|
all:
|
|
@echo ${REPROFLAGS}
|
|
.endif
|