Re: Recommended Method for adding recursive targets

2011-08-19 Thread Stefano Lattarini
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

Re: escape hash mark

2011-08-19 Thread Stefano Lattarini
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

Recommended Method for adding recursive targets

2011-08-19 Thread Daniel Neuberger
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

Re: escape hash mark

2011-08-19 Thread Daniel Neuberger
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

Re: escape hash mark

2011-08-19 Thread Stefano Lattarini
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 += "

escape hash mark

2011-08-19 Thread Daniel Neuberger
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 "\#

Re: ifdef ... endif issue

2011-08-19 Thread Stefano Lattarini
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