build/pymake/tests/line-continuations.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/pymake/tests/line-continuations.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +VAR = val1 	 \
     1.5 +  	  val2  
     1.6 +
     1.7 +VAR2 = val1space\
     1.8 +val2
     1.9 +
    1.10 +VAR3 = val3 \\\
    1.11 +	cont3
    1.12 +
    1.13 +all: otarget test.target
    1.14 +	test "$(VAR)" = "val1 val2  "
    1.15 +	test "$(VAR2)" = "val1space val2"
    1.16 +	test '$(VAR3)' = 'val3 \ cont3'
    1.17 +	test "hello \
    1.18 +	  world" = "hello   world"
    1.19 +	test "hello" = \
    1.20 +"hello"
    1.21 +	@echo TEST-PASS
    1.22 +
    1.23 +otarget: ; test "hello\
    1.24 +	world" = "helloworld"
    1.25 +
    1.26 +test.target: %.target: ; test "hello\
    1.27 +	world" = "helloworld"

mercurial