github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/kati/testcase/define_with_comments.mk (about)

     1  define  define_with_space 
     2  PASS1
     3  endef
     4  define  define_with_comment # foo
     5  PASS2
     6  endef
     7  define  endef_with_comment
     8  PASS3
     9  endef # boo
    10  define  endef_with_not_comment
    11  PASS4
    12  endef bar
    13  define  endef_with_not_comment2
    14  PASS5
    15  endef	baz
    16  define  endef_with_not_endef
    17  endefPASS
    18  endef
    19  define  with_immediate_comment#comment
    20  PASS6
    21  endef
    22  # Note: for some reason, the following is an error.
    23  #endef#comment
    24  
    25  test:
    26  	echo $(define_with_space)
    27  	echo $(define_with_comment)
    28  	echo $(endef_with_comment)
    29  	echo $(endef_with_not_comment)
    30  	echo $(endef_with_not_comment2)
    31  	echo $(endef_with_not_endef)
    32  	echo $(with_immediate_comment)