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


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

Submitted by:  None
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

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


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



$ 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



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.5