summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/unit-tests/comment.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/comment.mk')
-rw-r--r--contrib/bmake/unit-tests/comment.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/comment.mk b/contrib/bmake/unit-tests/comment.mk
new file mode 100644
index 0000000..7dd7dbb
--- /dev/null
+++ b/contrib/bmake/unit-tests/comment.mk
@@ -0,0 +1,31 @@
+# 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'
OpenPOWER on IntegriCloud