bugmake - Bugs: bug #42125, Explicit rules do not support...

 
 

bug #42125: Explicit rules do not support multiple targets

Submitted by:  None
Submitted on:  Tue 15 Apr 2014 04:02:29 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 4.0Operating System: POSIX-Based
Fixed Release: NoneTriage Status: Medium Effort

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 15 Apr 2014 04:21:58 PM UTC, comment #1:

This is not technically a bug. A static pattern rule is a form of explicit rule, not an implicit rule such as pattern rule. Explicit rules do not support multiple targets being created from a single invocation of the recipe, although this is a long-requested enhancement. Looking through the bug tracker I couldn't find an enhancement for it, though, so I'm leaving this one here as that request.

Paul D. Smith <psmith>
Project Administrator
Tue 15 Apr 2014 04:02:29 PM UTC, original submission:

Makefile allows to create pattern rule with multiple targets, like below. This is very handy for rules which generates multiple files at once.

%.h %.c : %.idl
touch $(<:%.idl=%.c) $(<:%.idl=%.h)

I tried to build static pattern rule in similar way, but it do not work - make reports error "multiple target patterns":

$(IDLS:%.idl=%.c) $(IDLS:%.idl=%.h) : %.h %.c : %.idl
touch $(<:%.idl=%.c) $(<:%.idl=%.h)

I tested this using make 4.0 on Linux. Please fix this.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 15 Apr 2014 04:21:58 PM UTCpsmithItem GroupBug=>Enhancement
      Triage StatusNone=>Medium Effort
      SummaryStatic pattern rules do not support multiple targets=>Explicit rules do not support multiple targets

    Back to the top


    Powered by Savane 3.1-cleanup