2009-03-19 07:19:38 -07:00
|
|
|
# where do comments take effect?
|
|
|
|
|
|
|
|
VAR = val1 # comment
|
|
|
|
VAR2 = lit2\#hash
|
2009-10-23 08:16:27 -07:00
|
|
|
VAR2_1 = lit2.1\\\#hash
|
2009-03-19 07:19:38 -07:00
|
|
|
VAR3 = val3
|
|
|
|
VAR4 = lit4\\#backslash
|
2009-10-23 08:16:27 -07:00
|
|
|
VAR4_1 = lit4\\\\#backslash
|
2009-03-19 07:19:38 -07:00
|
|
|
VAR5 = lit5\char
|
2009-10-23 08:16:27 -07:00
|
|
|
VAR6 = lit6\\char
|
|
|
|
VAR7 = lit7\\
|
|
|
|
VAR8 = lit8\\\\
|
|
|
|
VAR9 = lit9\\\\extra
|
2009-03-19 07:19:38 -07:00
|
|
|
# This comment extends to the next line \
|
|
|
|
VAR3 = ignored
|
|
|
|
|
|
|
|
all:
|
|
|
|
test "$(VAR)" = "val1 "
|
|
|
|
test "$(VAR2)" = "lit2#hash"
|
2009-10-23 08:16:27 -07:00
|
|
|
test '$(VAR2_1)' = 'lit2.1\#hash'
|
2009-03-19 07:19:38 -07:00
|
|
|
test "$(VAR3)" = "val3"
|
|
|
|
test '$(VAR4)' = 'lit4\'
|
2009-10-23 08:16:27 -07:00
|
|
|
test '$(VAR4_1)' = 'lit4\\'
|
2009-03-19 07:19:38 -07:00
|
|
|
test '$(VAR5)' = 'lit5\char'
|
2009-10-23 08:16:27 -07:00
|
|
|
test '$(VAR6)' = 'lit6\\char'
|
|
|
|
test '$(VAR7)' = 'lit7\\'
|
|
|
|
test '$(VAR8)' = 'lit8\\\\'
|
|
|
|
test '$(VAR9)' = 'lit9\\\\extra'
|
2009-03-19 07:19:38 -07:00
|
|
|
@echo "TEST-PASS"
|