Re: Phony targets not being made

2020-02-17 Thread Peter Dons Tychsen
Hi Dmitry > '%-sim: %' is the intended implicit rule that make does not look for > because rr1-sim is phony. Ah, yes i missed that the pattern rule was also an implicit rule. > There is no such thing as 'marking the addtional rule as PHONY'. > As soon as 'PHONY: $(PHON2)' line is removed

Re: Phony targets not being made

2020-02-16 Thread Dmitry Goncharov via Bug reports and discussion for GNU make
On Sun, Feb 16, 2020 at 5:35 PM Peter Dons Tychsen wrote: > There are no implicit rules used in the example AFAIK. '%-sim: %' is the intended implicit rule that make does not look for because rr1-sim is phony. > They are all phony, but not implicit unless i am missing something. Targets could

Re: Phony targets not being made

2020-02-16 Thread Peter Dons Tychsen
Hi All, > Your makefile is incorrect. > Make does not search implicit rules for phony targets. There are no implicit rules used in the example AFAIK. They are all phony and/or pattern rules, but not implicit unless i am missing something. Still, it does not explain why marking the addtional

Re: Phony targets not being made

2020-02-13 Thread Dmitry Goncharov via Bug reports and discussion for GNU make
Good morning. Your makefile is incorrect. Make does not search implicit rules for phony targets. regards, Dmitry On Thu, Feb 13, 2020 at 2:31 PM wrote: > > Hi > > I have the following makefile > -- > PHON1 := rr1 rr2 > PHON2 := rr1-sim > > .PHONY: all $(PHON1) > # remove below line to get

Phony targets not being made

2020-02-13 Thread christian
Hi I have the following makefile -- PHON1 := rr1 rr2 PHON2 := rr1-sim .PHONY: all $(PHON1) # remove below line to get rr1-sim done .PHONY: $(PHON2) all: $(PHON1) $(PHON2) @echo all done %-sim: % @echo doing $@ $(PHON1): @echo doing $@ -- The command 'make' gives the