freebsd-dev/contrib/bmake/unit-tests/comment.mk
Simon J. Gerraty db29cad815 Merge bmake-20150418
PR: 199486
2015-04-21 04:40:38 +00:00

32 lines
470 B
Makefile

# This is a comment
.if ${MACHINE_ARCH} == something
FOO=bar
.endif
#\
Multiline comment
BAR=# defined
FOOBAR= # defined
# This is an escaped comment \
that keeps going until the end of this line
# Another escaped comment \
that \
goes \
on
# This is NOT an escaped comment due to the double backslashes \\
all: hi foo bar
@echo comment testing done
hi:
@echo comment testing start
foo:
@echo this is $@
bar:
@echo This is how a comment looks: '# comment'