Re: no rule to build included makefile but make does not fail

2018-12-04 Thread Renaud Pacalet
On 04/12/2018 12:00, Edward Welbourne wrote: > pacalet (4 December 2018 08:38) wrote: >> Not sure it is a bug but I think it deserves some attention. Here is an >> MCVE: >> >> ```make >> .PHONY: all clean >> >> all:; >> >> include a.mk >> >> a.mk: b >> >> b: >> @touch $@ >>

Re: no rule to build included makefile but make does not fail

2018-12-04 Thread Edward Welbourne
pacalet (4 December 2018 08:38) wrote: > Not sure it is a bug but I think it deserves some attention. Here is an > MCVE: > > ```make > .PHONY: all clean > > all:; > > include a.mk > > a.mk: b > > b: > @touch $@ > @printf '$$(info a.mk included)' > a.mk > > clean: > @rm -f

no rule to build included makefile but make does not fail

2018-12-04 Thread pacalet
Hello, Not sure it is a bug but I think it deserves some attention. Here is an MCVE: ```make .PHONY: all clean all:; include a.mk a.mk: b b: @touch $@ @printf '$$(info a.mk included)' > a.mk clean: @rm -f a.mk b ``` First make invocation: ```bash $ make make: