[asterisk-dev] [svn-commits] rizzo: trunk r72700 - /trunk/main/Makefile

Russell Bryant russell at digium.com
Fri Jun 29 15:49:58 CDT 2007


SVN commits to the Digium repositories wrote:
> Author: rizzo
> Date: Fri Jun 29 15:33:35 2007
> New Revision: 72700
> 
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=72700
> Log:
> Make sure that we properly recurse in subdirectories to
> check dependencies for libraries.
> Because these targets (e.g. minimime/libmmime.a) are real ones,
> declaring them .PHONY would cause them to be rebuilt every time
> (see e.g. SVN 64355).
> 
> As a workaround I am using the following CHECK_SUBDIR target:
> 
>   CHECK_SUBDIR:  # do nothing, just make sure that we recurse in the subdir/
>   minimime/libmmime.a: CHECK_SUBDIR
> 	@cd minimime && $(MAKE) libmmime.a
> 
> which seems to do a better job than .PHONY (probably because
> .PHONY forces the rebuild even if the recursive make does not think
> it is necessary).

Hm, this is interesting.  I have always thought that declaring a target
as .PHONY did the exact same thing as what this method does.  In fact,
the GNU make manual claims they do the same thing.

http://www.gnu.org/software/make/manual/html_node/Force-Targets.html#Force-Targets

-- 
Russell Bryant
Software Engineer
Digium, Inc.



More information about the asterisk-dev mailing list