loaded objects example [tiny PATCH & Q]

2017-05-06 Thread Jannick
On the loaded objects example (https://www.gnu.org/software/make/manual/make.html#Example-Loaded-Object): 1 - attached really tiny patch on edits in the documentation to make things running and gcc less complaining. 2 - Living on Win10 (with Cygwin), I had to create libgnumake-1.dll.a myself whic

are target-local variables for pattern rules well defined and supported?

2017-05-06 Thread Britton Kerin
This seems to work: %.o: COMPILE = cp %.o: %.c $(COMPILE) $< $@ but it makes me a little nervous. The manual doesn't seem to mention it in either the section on target-local variables or the one on pattern rules. Is this well defined and intentionally supported behavior? Thanks, Britt

Re: are target-local variables for pattern rules well defined and supported?

2017-05-06 Thread Paul Smith
On Sat, 2017-05-06 at 16:08 -0800, Britton Kerin wrote: > This seems to work: > > %.o: COMPILE = cp > %.o: %.c > $(COMPILE) $< $@ > > but it makes me a little nervous.  The manual doesn't seem to mention > it in either the section on target-local variables or the one on > pattern rules.