patchmake - Patches: patch #6040, N targets from a single...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #6040: N targets from a single *invocation* of a rule's command (triple-colon rules)

Submitted by:  Stephen Warren <srwarren>
Submitted on:  Fri 22 Jun 2007 08:06:06 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Fixed Release: None

Fri 22 Jun 2007 08:06:06 PM UTC, original submission:

I have a situation where a build command generates multiple outputs from a single command. I need make to run the commands one single time if any of those outputs are missing or out-of-date.

The names of these files (and the dependencies) are not regular, so I cannot use pattern rules to setup the "also_make" internal make data.

In fact, the names of the output files are actually dependent on the content of the input file in my case, although that's not relevant to the implementation, nor requirement for, this new feature.

So, I invented a "triple-colon" rule that sets up the "also_make" internal data, but otherwise acts like a regular non-pattern single-colon rule.

Note that the error checking (mixing different types of rules) may not be entirely complete. However, if you use sensible combinations of rules, then this patch works out great.

The patch is against a patched version of mingw32-make-3.80.0-3, so there may be some fuzz applying to clean copies and/or newer versions.

Use the feature like this:

tgt1 tgt2 tgt3 ::: dependencies
commands

Stephen Warren <srwarren>

 

Attached Files
file #13137:  triple-colon-rule.patch added by srwarren (7kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by srwarren (Submitted the item)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Jun 2007 08:06:06 PM UTCsrwarrenAttached File-=>Added triple-colon-rule.patch, #13137

    Back to the top


    Powered by Savane 3.1-cleanup