Re: VPATH and include

2019-08-30 Thread Sébastien Hinderer
Dear Kaz, Many thanks for your response, which makes perfect sense to me. To give a bit of context I asked the question mainly about the inclusion of .depend files for a project that can at the moment not be built out of source tree and for which I was experimenting with VPATH. I think for .depen

Re: GNU Make 4.2 Query

2019-08-30 Thread nikhil jain
Hi again, Does GMAKE has a retry option. If a command in a rule is failed, is there an option to retry it or I have to implement it ? Waiting for response. Thanks Nikhil On Fri, May 31, 2019 at 10:59 PM nikhil jain wrote: > OK, Thanks for your valuable suggestion. > Also, will you consider rem

target override only if there is a recipe for it?

2019-08-30 Thread Brian J. Murrell
I am trying to override a target that has a general definition in an included Makefile with a more specific one. But it seems that the override only happens if the overriding target has a recipe? I.e: Makefile.mk: 1 foo.gz: 2echo "foo" | gzip > $@ Makefile: 1 include Makefile.mk 2 3 %.

Re: target override only if there is a recipe for it?

2019-08-30 Thread David Boyce
Yes, this is documented behavior. A target can be mentioned multiple times but only one mention can provide a recipe. Others simply add to the prereq list. Thus: foo.gz: abc foo.gz: def foo.gz: ghi Has 3 prerequisite files. This behavior is documented, baked in, and is not going to chang

Re: target override only if there is a recipe for it?

2019-08-30 Thread Kaz Kylheku (gmake)
On 2019-08-30 06:24, Brian J. Murrell wrote: I am trying to override a target that has a general definition in an included Makefile with a more specific one. But it seems that the override only happens if the overriding target has a recipe? Overriding targets isn't a concept in make; it can ha