Re: make(1): should := expand twice?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joachim Schipper
Date: Thursday, May 27, 2010 - 2:13 am

On Wed, May 26, 2010 at 09:15:32PM -0700, Philip Guenther wrote:

This behaviour annoyed me when I wanted to do something like

PKG_PATH:=`echo '${PKG_PATH}' | sed -re 's/:?$$/:foo/'`

This works fine with GNU make, but BSD make requires

PKG_PATH:=`echo '${PKG_PATH}' | sed -re 's/:?$$$$/:foo/'`

but also accepts $$$.

Would a patch for this be desirable? I have very limited hacking time,
but I could try to come up with something over the weekend/next week. It
should, of course, be extensively tested before applying.

(OTOH, the current behaviour is sufficiently surprising that I'd expect
any Makefiles not explicitly written for BSD make to assume the GNU
behaviour.)

		Joachim
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
make(1): should := expand twice?, Joachim Schipper, (Thu May 20, 2:11 am)
Re: make(1): should := expand twice?, Joachim Schipper, (Thu May 20, 2:58 am)
Re: make(1): should := expand twice?, Joachim Schipper, (Tue May 25, 2:13 pm)
Re: make(1): should := expand twice?, Philip Guenther, (Wed May 26, 9:15 pm)
Re: make(1): should := expand twice?, Joachim Schipper, (Thu May 27, 2:13 am)
Re: make(1): should := expand twice?, Marc Espie, (Thu May 27, 5:22 am)
Re: make(1): should := expand twice?, Marc Espie, (Sun Jun 6, 9:16 am)