help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about quoting of certain values..


From: Stephan Beal
Subject: question about quoting of certain values..
Date: Tue, 28 Jun 2011 23:10:45 +0200

Hi, all!

Please consider this output line (from make):

+ g++ ... -UNDEBUG -DDEBUG=1 '-DINCLUDE_SHELL_BINDINGS="jspdo.hpp"' ...

the interesting bit in the -DINCLUDE_SHELL_BINDINGS part. Those are declared
as:

  $(SHELL.LOCAL.O):
CPPFLAGS+=-DINCLUDE_SHELL_BINDINGS='"$(SHELL_BINDINGS_HEADER)"'

note the placement of the quotes. It appears that make is doing the extra
quoting/re-quoting. Is that the case? i.e. is that documented,
wlll-stay-thay-way behaviour i can depend on?

The quoting is absolutely correct (IMO), so i'm not complaining! i ask
because i would like to use a C++ class template name, e.g. -DMyType<Foo>,
in a similar part of the makefile, but i want to be damned certain that the
'<' and '>' characters aren't going to cause me Grief before i try that out.

:-?

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]