Re: Phony targets and pattern rules

2014-09-09 Thread Frank Heckenbach
Paul Smith wrote: > OK I've reworded this. I changed the title of the catalog section to be > "Catalogue of Built-In Rules" instead, and reworded the Phony Targets > section. I think it's clearer now, thanks! Frank ___ Bug-make mailing list Bug-make@

Re: Phony targets and pattern rules

2014-09-07 Thread Paul Smith
OK I've reworded this. I changed the title of the catalog section to be "Catalogue of Built-In Rules" instead, and reworded the Phony Targets section. Thanks! ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

Re: Phony targets and pattern rules

2014-09-06 Thread Frank Heckenbach
Paul Smith wrote: > On Sat, 2014-09-06 at 20:01 +0200, Frank Heckenbach wrote: > > > Since it knows that phony targets do not name actual files that > > > could be remade from other files, `make' skips the implicit rule > > > search for phony targets (*note Implicit Rules::

Re: Phony targets and pattern rules

2014-09-06 Thread Paul Smith
On Sat, 2014-09-06 at 20:01 +0200, Frank Heckenbach wrote: > > Since it knows that phony targets do not name actual files that > > could be remade from other files, `make' skips the implicit rule > > search for phony targets (*note Implicit Rules::). This is why > >

Re: Phony targets and pattern rules

2014-09-06 Thread Frank Heckenbach
Paul Smith wrote: > On Sat, 2014-09-06 at 19:38 +0200, Frank Heckenbach wrote: > > I know that specific rules take precendence over pattern rules (e.g. > > if I had a rule "foobar:;", I wouldn't expect the echo to run), as > > the documentation says: "The rules you write take precedence over > > t

Re: Phony targets and pattern rules

2014-09-06 Thread Paul Smith
On Sat, 2014-09-06 at 19:38 +0200, Frank Heckenbach wrote: > I know that specific rules take precendence over pattern rules (e.g. > if I had a rule "foobar:;", I wouldn't expect the echo to run), as > the documentation says: "The rules you write take precedence over > those that are built in." But

Phony targets and pattern rules

2014-09-06 Thread Frank Heckenbach
Is this the intended behaviour? % cat Makefile .PHONY: all foobar all: foobar foo%:; echo $@ % cat foobar cat: foobar: No such file or directory % make make: Nothing to be done for 'all'. (Wherease when "foobar" is not listed as .PHONY, echo is run.) "make -d" reveals: Considering target file '