Hi Daniel. Just a quick answer, as I'm in a hurry ...
On Friday 19 August 2011, Daniel Neuberger wrote:
> I'm seen a couple of recommendations on this, but no consensus.
> Currently to make sometarget recursive, I add the following above the
> target:
>
> sometarget-%:
> $(MAKE) -C $* so
On Friday 19 August 2011, Daniel Neuberger wrote:
> On 08/19/2011 02:30 PM, Stefano Lattarini wrote:
> > Does the following works?
> >
> >HASHMARK = \#
> >SOMEVAR = "$(HASHMARK)some comment"
> >SOMEVAR += "other stuff"
> Yes, thanks for the tip.
>
> > Anyway, consider that there is no
I'm seen a couple of recommendations on this, but no consensus.
Currently to make sometarget recursive, I add the following above the
target:
sometarget-%:
$(MAKE) -C $* sometarget
sometarget: $(foreach dir, $(SUBDIRS), sometarget-$(dir))
Suggestions for improvement?
Thanks!
- Daniel
On 08/19/2011 02:30 PM, Stefano Lattarini wrote:
Does the following works?
HASHMARK = \#
SOMEVAR = "$(HASHMARK)some comment"
SOMEVAR += "other stuff"
Yes, thanks for the tip.
Anyway, consider that there is no portable way to place a literal `#' in
a make variable; for example:
Thank
On Friday 19 August 2011, Daniel Neuberger wrote:
> Is there any way to reliable escape the hash mark in automake? It seems
> that using += causes multiple expansions and breaks it.
>
> This works:
>
> SOMEVAR = "\# some comment"
>
> This doesn't
>
> SOMEVAR = "\# some comment"
> SOMEVAR += "
Is there any way to reliable escape the hash mark in automake? It seems
that using += causes multiple expansions and breaks it.
This works:
SOMEVAR = "\# some comment"
This doesn't
SOMEVAR = "\# some comment"
SOMEVAR += "other stuff"
So my current workaround is:
HASHMARK = $(shell echo "\#
On Thursday 18 August 2011, Daniel Neuberger wrote:
> On 08/18/11 13:24, Stefano Lattarini wrote:
> > Do you have a link to that thread, by chance? I think I can point out
> > other workarounds, but before doing so I want to be sure they are
> > appropriate to the issue under discussions.
>
> Sur