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/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make