bugmake - Bugs: bug #11564, Order-only prerequistes misbehave...

 
 

bug #11564: Order-only prerequistes misbehave on pattern rules

Submitted by:  Darren Hiebert <dhiebert>
Submitted on:  Tue 11 Jan 2005 10:05:44 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: NoneOperating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 19 Jan 2005 08:00:35 PM UTC, comment #1:

It's much more helpful if you show a sample invocation and output so we can be sure what the incorrect output is and what you expected to see.

I believe this is already fixed in the CVS version of make; when I run "make pattern1" I get this:

$ make pattern1
order-only rule
touch pattern1
$ make pattern1
order-only rule
$ make pattern1
order-only rule

so it only runs the pattern1 rule the first time. If this isn't what you wanted, please log another note to this bug and I'll reopen it.

Paul D. Smith <psmith>
Project Administrator
Tue 11 Jan 2005 10:05:44 PM UTC, original submission:

The attached makefile demonstrates that order-only prerequisites do not behave the same for pattern rules as they do for static rules. Using the attached makefile demonstrates that "make static" will cause the static rule to be invoked only the first time it is made, whereas "make pattern1" will cause the pattern rule to be invoked every time it is made because the order-only prerequisite forces the target to be out of date.

Darren Hiebert <dhiebert>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2356:  GNUmakefile added by dhiebert (144B - application/octet-stream - Makefile demonstrating problem)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 19 Jan 2005 08:00:35 PM UTCpsmithItem GroupNone=>Bug
  StatusNone=>Fixed
  Open/ClosedOpen=>Closed
  Operating SystemNone=>Any
Tue 11 Jan 2005 10:07:06 PM UTCdhiebertAttached File-=>Added GNUmakefile, #2056

Back to the top


Powered by Savane 3.1-cleanup1