bugmake - Bugs: bug #54875, The + prefix in canned recipe...

 
 

bug #54875: The + prefix in canned recipe affects multiple lines

Submitter:  None
Submitted:  Mon 22 Oct 2018 01:38:12 PM UTC
   
 
Severity:  3 - Normal Priority:  5 - Normal
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Component Version:  4.2.1
Operating System:  POSIX-Based Fixed Release:  None
Triage Status:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 22 Oct 2018 01:38:12 PM UTC, original submission:  

Prefixing a line in a canned recipe with + affects all the following lines (instead of just the prefixed line). In the example below, when running 'make -n bar' you can see the last echo is being executed even though it is not prefixed with a +.

$ cat Makefile
define FOO =
        echo a
        +$(MAKE) baz
        echo b
endef

bar:
        $(FOO)

baz:

$ make -n bar
echo a
make baz
make[1]: Entering directory '/home/shaked/Workspace/phd_thesis/temp'
make[1]: Nothing to be done for 'baz'.
make[1]: Leaving directory '/home/shaked/Workspace/phd_thesis/temp'
echo b
b

Anonymous

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-11ef.
Corresponding source code