bugmake - Bugs: bug #46374, Pattern rules require at least an...

 
 

bug #46374: Pattern rules require at least an empty recipe to be recognized

Submitted by:  None
Submitted on:  Wed 04 Nov 2015 09:29:26 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.1Operating 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.

 

Mon 23 Nov 2015 05:43:45 PM UTC, comment #2:

Pattern rules must have a recipe, because pattern rules without any recipe mean to cancel that pattern rule. See http://www.gnu.org/software/make/manual/html_node/Canceling-Rules.html

Paul D. Smith <psmith>
Project Administrator
Thu 05 Nov 2015 10:49:30 AM UTC, comment #1:

Actually, in order to run successfully it only needs the tab in line#7, no need for the '@'.

Omar Cardia <omar>
Wed 04 Nov 2015 09:29:26 AM UTC, original submission:

Although the Manual specifies:
--------------------------------------------
Here is the syntax of a static pattern rule:

targets …: target-pattern: prereq-patterns …
recipe

--------------------------------------------

I did not found any specific comments on the mandatory nature of the recipe.

The uploaded file shows the issue running either "make" or "make fail". The Makefile succeeds running make pass, where a dummy rule has been specified.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #35381:  Makefile added by None (402B - application/octet-stream - make; make pass;)

 

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)
  • -unavailable- added by omar (Posted a comment)
  • -unavailable- added by omar
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Nov 2015 05:43:45 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed
    Thu 05 Nov 2015 09:52:26 AM UTComarCarbon-Copy-=>Added omar
    Wed 04 Nov 2015 09:29:26 AM UTCNoneAttached File-=>Added Makefile, #35381

    Back to the top


    Powered by Savane 3.1-cleanup1