help-make
[Top][All Lists]
Advanced

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

RE: is there a simple way to always get a single $ when passed to shell


From: Mark Galeck (CW)
Subject: RE: is there a simple way to always get a single $ when passed to shell
Date: Wed, 5 Oct 2011 19:59:37 -0700

Correct me if I am wrong, but I don't see how, without an additional argument 
telling MACRO, whether it is called within eval or not:
(of course, this is just a simple example, in real life MACRO is very 
complicated and it has either a bunch of either $$$$ or $$ strings


define MACRO
echo $(if $(1),$$$$,$$)
endef

define MACRO1
foobar1:
        $(call MACRO,eval)
endef

foobar:
        $(MACRO)

$(eval $(MACRO1))



reply via email to

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