Dmitry Goncharov wrote:
There are various techniques.
example 1, define the variable
\:=
This was simple and elegant. Worked w/o any warnings.
Thanks!
On Fri, Apr 14, 2023 at 5:38 AM Gisle Vanem wrote:
> But with 'MAKEFLAGS += --warn-undefined-variables', I get a
> bunch of warnings:
>'reference to undefined variable '\''
>
> How can I avoid that?
There are various techniques.
example 1, define the variable
\:=
define trace_h
#define G_
Martin Dorey wrote:
This seems to work:
martind@sirius:~/tmp/vanem-2023-04-14$ cat Makefile
g_trace.h: Makefile; $(file > $@,$(trace_h))
\ = \
define trace_h
#define G_TRACE(level, fmt, ...) $\\
do { $\\
if (_g_t