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 portable way to place a literal `#' in > > a make variable; for example: > Thanks for the pointer. I think the method I had would be portable, right? > Well, no, `$(shell ...)' is a GNU make extension. Your best bet is still `\#' (maybe with the indirection necessary to prevent automake from mangling it), since it seems to work with BSD make too.
Regards, Stefano
