[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54875] The + prefix in canned recipe affects multiple lines
From: |
anonymous |
Subject: |
[bug #54875] The + prefix in canned recipe affects multiple lines |
Date: |
Mon, 22 Oct 2018 09:38:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?54875>
Summary: The + prefix in canned recipe affects multiple lines
Project: make
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
Discussion Lock: Any
Component Version: 4.2.1
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54875>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #54875] The + prefix in canned recipe affects multiple lines,
anonymous <=