help-make
[Top][All Lists]
Advanced

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

Re: why are all prerequisites timestamps checked, even after one is fou


From: Philip Guenther
Subject: Re: why are all prerequisites timestamps checked, even after one is found to be newer than target??
Date: Tue, 15 Dec 2009 10:25:33 -0800

On Tue, Dec 15, 2009 at 10:17 AM, Eli Zaretskii <address@hidden> wrote:
>> Date: Mon, 14 Dec 2009 11:40:39 -0800
>> From: Philip Guenther <address@hidden>
>> Cc: "address@hidden" <address@hidden>
>>
>> 1) if you don't use RCS or SCCS, then disable the pattern rules for
>> checking out files from them with
>>
>> %:: %,v
>> %:: RCS/%,v
>> %:: RCS/%
>> %:: s.%
>> %:: SCCS/s.%
>
> Disable how? by rebuilding Make after removing them from the built-in
> database of rules, or by something you put in a Makefile?

Umm, by including exactly the lines I gave above, as documented in the
info, "Canceling Implicit Rules":
...
   You can cancel a built-in implicit rule by defining a pattern rule
with the same target and prerequisites, but no commands.  For example,
the following would cancel the rule that runs the assembler:

     %.o : %.s


Add those lines and compare the output of 'make -d' or 'make -p'...


Philip Guenther




reply via email to

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