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

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code