Re: New conditional assignment facility

2024-01-22 Thread Dmitry Goncharov
On Mon, Jan 22, 2024 at 8:16 AM Paul Smith wrote: > I don't understand the point you are making about +!=. If all new operators behave the same as +=, when the variable exists, then +!= is not needed, because +!= would do the same as +=$(shell ...). Based on your explanations, it looks like you

make manual feedback

2024-01-22 Thread David Apps
I hope that you are well. Thank you for your work on this great software. I have some feedback about the document at the following address: http://www.gnu.org/software/make/manual/make.html Backslashes that quote ‘%’ characters or other backslashes are removed from the pattern before it is co

Re: New conditional assignment facility

2024-01-22 Thread Jouke Witteveen
On Mon, Jan 22, 2024 at 4:59 PM Martin Dorey wrote: > > Why is that? > > > I imagine because that's how, to my surprise, it is today: > > martind@stormy:~/tmp/make-conditional-assignment-2024-01-22$ cat Makefile > A := 42 > A += $(shell hello) > martind@stormy:~/tmp/make-conditional-assignment-202

Re: New conditional assignment facility

2024-01-22 Thread Martin Dorey
* Why is that? I imagine because that's how, to my surprise, it is today: martind@stormy:~/tmp/make-conditional-assignment-2024-01-22$ cat Makefile A := 42 A += $(shell hello) martind@stormy:~/tmp/make-conditional-assignment-2024-01-22$ make make: hello: No such file or directory make: *** No

Re: New conditional assignment facility

2024-01-22 Thread Jouke Witteveen
On Mon, Jan 22, 2024 at 2:16 PM Paul Smith wrote: > > If the only goal was to allow +:= create a simple variable, then can > > we do the following? > > "If no variable with this name exists, then +:= creates a simple > > variable, and +:::= creates an immediately-expanded-and-escaped > > variable.

Re: New conditional assignment facility

2024-01-22 Thread Paul Smith
On Sun, 2024-01-21 at 14:22 -0500, Dmitry Goncharov wrote: > Let us clarify the goal of these enhancements? > i assumed that the goal of these enhancements was to allow code like > hello+:=$(world) > create 'hello' as a simple variable, if 'hello' does not exist yet. > > After reading your != exam