mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
cdde9e894d
Features of interest: Allow setting target local variables (similar to gmake) In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands before comparion. contrib/bmake/mk/cc-wrap.mk is an example of using these See ChangeLog for the gory details.
11 lines
379 B
Makefile
11 lines
379 B
Makefile
# $NetBSD: varmod-quote-dollar.mk,v 1.3 2022/01/22 17:10:51 rillig Exp $
|
|
#
|
|
# Tests for the :q variable modifier, which quotes the string for the shell
|
|
# and doubles dollar signs, to prevent them from being interpreted by a
|
|
# child process of make.
|
|
|
|
ASCII_CHARS= ${.newline} !"\#$$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
|
|
|
|
all:
|
|
@${MAKE} -r -f /dev/null CHARS=${ASCII_CHARS:q} -V CHARS
|