[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is there a simple way to always get a single $ when passed to shell
From: |
Mark Galeck (CW) |
Subject: |
is there a simple way to always get a single $ when passed to shell |
Date: |
Wed, 5 Oct 2011 18:46:29 -0700 |
Hello,
I am trying to write a single macro that can be put in a recipe, that either if
that recipe is called within or without $(eval), it will yield a single $ when
the shell gets it.
Let me show you what I mean:
define MACRO
echo $$$$
endef
define MACRO1
foobar1:
$(MACRO)
endef
foobar:
$(MACRO)
$(eval $(MACRO1))
When you do
>make foobar1
you get "$" which is what I want. But it does not work with
>make foobar
there you have "$$".
How to write a single MACRO, which can be always called, regardless with or
without $(eval) so that the shell always gets $
Mark
- Canned Recipe, MD.Mahbubur Rahman, 2011/10/04
- Re: Canned Recipe, Philip Guenther, 2011/10/04
- updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/10/05
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, David Boyce, 2011/10/05
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/10/05
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/10/07
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, David Boyce, 2011/10/07
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Paul Smith, 2011/10/07
- is there a simple way to always get a single $ when passed to shell,
Mark Galeck (CW) <=
- RE: is there a simple way to always get a single $ when passed to shell, Mark Galeck (CW), 2011/10/05