URL:
<https://savannah.gnu.org/bugs/?60799>
Summary: Parser chokes on second expansion of a prerequisite
with ; o #
Project: make
Submitted by: dgoncharov
Submitted on: Sat 19 Jun 2021 01:41:58 PM UTC
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Parser chokes on second expansion of a prerequisite with ; o #
$ cat makefile
MAKEFLAGS+=--warn-undefined-variables
.SECONDEXPANSION:
hello: $$(shell echo world;)
touch $@
bye: $$(hello#world)
touch $@
$ make hello
makefile:7: *** unterminated variable reference. Stop.
$ make bye
makefile:7: *** unterminated variable reference. Stop.
$
Parser treats ; as a recipe delimiter and # as a comment delimiter.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60799>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/