Re: [Question] multiple targets for implicit rule

2019-02-19 Thread Masahiro Yamada
On Wed, Feb 20, 2019 at 1:04 AM LeJacq, Jean Pierre wrote: > > On Tuesday, February 19, 2019 10:51:42 AM EST Masahiro Yamada wrote: > > > > (Makefile begin)- > > .PHONY: all > > all: foo.x foo.z > > > > %.x %.z: > > touch $@ > > -(Makefile end)-- > >

Re: [Question] multiple targets for implicit rule

2019-02-19 Thread LeJacq, Jean Pierre
On Tuesday, February 19, 2019 10:51:42 AM EST Masahiro Yamada wrote: > > (Makefile begin)- > .PHONY: all > all: foo.x foo.z > > %.x %.z: > touch $@ > -(Makefile end)-- > > $ rm foo* > $ make > touch foo.x > $ make > touch foo.z > $ make > make: Not

[Question] multiple targets for implicit rule

2019-02-19 Thread Masahiro Yamada
Hi. I have a question about the following behavior. (Makefile begin)- .PHONY: all all: foo.x foo.z %.x %.z: touch $@ -(Makefile end)-- $ rm foo* $ make touch foo.x $ make touch foo.z $ make make: Nothing to be done for 'all'. When multiple t