automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a custom target


From: Ralf Wildenhues
Subject: Re: Create a custom target
Date: Mon, 7 Jul 2008 19:53:53 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* 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

[Prev in Thread] Current Thread [Next in Thread]