URL:
<http://savannah.gnu.org/bugs/?51972>
Summary: target-specific assignments and target definitions
in multi-line variable definitions not handled correctly
Project: make
Submitted by: oss542
Submitted on: Sat 09 Sep 2017 07:09:29 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:
case 1 :
Makefile:
define EXELNK
#$(1): OBJ1=xOBJ1
$(1):;@echo "jfh1:pt1:$(OBJ1):"
endef
$(call EXELNK,utl1)
#utl1:;@echo "jfh1:pt1:$(OBJ1):"
result of "make" :
make: *** No targets. Stop.
case 2 :
Makefile :
define EXELNK
$(1): OBJ1=xOBJ1
$(1):;@echo "jfh1:pt1:$(OBJ1):"
endef
$(call EXELNK,utl1)
#utl1:;@echo "jfh1:pt1:$(OBJ1):"
result of "make" :
make: *** No targets. Stop.
case 3 :
Makefile :
define EXELNK
$(1):;@echo "jfh1:pt1:$(OBJ1):"
endef
$(call EXELNK,utl1)
#utl1:;@echo "jfh1:pt1:$(OBJ1):"
result of "make" :
works as expected
case 4 :
Makefile :
define EXELNK
$(1): OBJ1=xOBJ1
#$(1):;@echo "jfh1:pt1:$(OBJ1):"
endef
$(call EXELNK,utl1)
utl1:;@echo "jfh1:pt1:$(OBJ1):"
result of "make" :
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [Makefile:7: utl1] Error 2
case 5 :
Makefile :
define EXELNK
$(1): OBJ1=xOBJ1
endef
$(call EXELNK,utl1)
utl1:;@echo "jfh1:pt1:$(OBJ1):"
result of "make" :
works as expected
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51972>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make