PM78307: Clearmake, doing GNU make emulation, interprets # in quoted strings in define/endef macros as the beginning of a comment.
Closed as user error.
When migrating a makefile from the Free Software Foundation GNU make tool to IBM Rational ClearCase clearmake, macro definitions containing '#' characters are interpreted incorrectly. clearmake interprets the # characters as the beginning of a makefile comment, thus potentially causing make errors, or other incorrect output. For example, using this makefile: define msg 'Test #string' endef .PHONY: foo foo: echo '$(msg)' will cause the following incorrect output: clearmake -C gnu -f sample1.mk echo ''Test ' ''Test ' With gnu make, the output will be: make -f Sample1.mk echo ''Test #string'' 'Test #string'
CCASE_IGNORE_ESCAPED_HASH_IN_MULTILINE_MACRO needs to be set for the desired behaviour.
Reported component name
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Applicable component levels
Translate this page: