/build/pymake/tests/line-continuations.mk

http://github.com/zpao/v8monkey · Makefile · 24 lines · 19 code · 5 blank · 0 comment · 0 complexity · 8ff30090b613e2bf7d01ee0017d38ef9 MD5 · raw file

  1. VAR = val1 \
  2. val2
  3. VAR2 = val1space\
  4. val2
  5. VAR3 = val3 \\\
  6. cont3
  7. all: otarget test.target
  8. test "$(VAR)" = "val1 val2 "
  9. test "$(VAR2)" = "val1space val2"
  10. test '$(VAR3)' = 'val3 \ cont3'
  11. test "hello \
  12. world" = "hello world"
  13. test "hello" = \
  14. "hello"
  15. @echo TEST-PASS
  16. otarget: ; test "hello\
  17. world" = "helloworld"
  18. test.target: %.target: ; test "hello\
  19. world" = "helloworld"