* Tavian Barnes wrote on Mon, Jul 07, 2008 at 03:39:07PM CEST:
> On Sun, Jul 6, 2008 at 11:25 PM, Ralf Wildenhues wrote:
> >
> > EXTRA_PROGRAMS = prog
> > prog_SOURCES = ...
> > bench: prog$(EXEEXT)
> >        execute prog$(EXEEXT)...
> > .PHONY: bench
> 
> This works great, thanks.  What does .PHONY do?

Tell 'make' that the 'bench' target is not a file but some action that
should be taken, even if a file named 'bench' should happen to exist and
have a new time stamp.  '.PHONY' is a feature of 'make' and has no
specific connection with automake; the GNU make manual documents it:
<http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html>.

Cheers,
Ralf


Reply via email to