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

 
 

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

Submitter:  None
Submitted:  Wed 04 Nov 2015 09:29:26 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Not A Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.1 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by omar (Posted a comment)
  • -email is unavailable- added by omar
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-23 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed
    2015-11-05 omar Carbon-Copy- Added omar
    2015-11-04 None Attached File- Added Makefile, #35381

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code