[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .PRECIOUS and .SECONDARY do not overlap?
From: |
Paul Smith |
Subject: |
Re: .PRECIOUS and .SECONDARY do not overlap? |
Date: |
Sat, 22 Oct 2011 08:41:03 -0400 |
On Fri, 2011-10-21 at 23:53 -0700, Mark Galeck (CW) wrote:
> .SECONDARY: %/.
>
> If I replace ".SECONDARY" with ".PRECIOUS", then everything works
> fine.
Check the docs:
.PRECIOUS accepts a pattern as a target, and applies to all targets that
match that pattern.
.SECONDARY does not accept a pattern as a target, so your .SECONDARY
rule is declaring the target named, literally, "%/." as secondary.
"subdir/." is not "%/." so your .SECONDARY rule doesn't apply to it.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist