help-make
[Top][All Lists]
Advanced

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

Re: Wording in GNU Make manual regarding phony targets


From: Dave Hylands
Subject: Re: Wording in GNU Make manual regarding phony targets
Date: Tue, 20 Dec 2005 13:08:23 -0800

Hi Johan,

> ... and using 'recursive make', I use the same FORCE target to enforce 
> recursion like in:
>
> .PHONY: FORCE $(subdirs) clean
>
> clean: FORCE
> <tab>{Commands to clean this level...}

Just declaring clean to be PHONY should be sufficient. phony targets
are always rebuilt. There isn't anything wrong with the way you did
it.

> FORCE : $(subdirs)

Is this a typo? I could understand

$(subdirs) : FORCE

but not the other way around.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/




reply via email to

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