help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiline variables inside single/double quote


From: ali hagigat
Subject: Multiline variables inside single/double quote
Date: Tue, 15 Feb 2011 10:58:23 +0330

define var1
echo tttt
echo pppp
endef
e12:
        @echo "$(var1)"
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [e12] Error 2
-----------------------------------------
define var1
echo tttt
echo pppp
endef
e12:
        @echo ""$(var1)""
echo tttt
pppp
-----------------------------------------

I am using make, v3.81. Why there is an error in the first example and
no error in the second case? How make resolves the cases?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]