From 88f1bc8b55b9f5abf35fdf974310c1063fa41068 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 3 Mar 2012 18:45:08 +0000 Subject: Modify backslash/newline handling for POSIX. We fixed Savannah 16670 but that broke previously-working makefiles that relied on the GNU make behavior. The POSIX behavior doesn't seem to me to be better, and can be obtained using GNU make as well, so put it back as the default behavior and require .POSIX to get the POSIX behavior. Add a new section to the manual discussing backslash/newline handling. Update the test suite. --- NEWS | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index b07ab98..5ba6a8c 100644 --- a/NEWS +++ b/NEWS @@ -16,11 +16,12 @@ A complete list of bugs fixed in this version is available here: http://sv.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=101&set=custom * WARNING: Backward-incompatibility! - This version of make adheres to the POSIX backslash/newline handling, - introducing the following differences: - * Each backslash/newline in a variable value is replaced with a space; - multiple consecutive backslash/newlines do not condense into one space. - * In recipes, a recipe prefix following a backslash-newlines is removed. + If .POSIX is specified, then make adheres to the POSIX backslash/newline + handling requirements, which introduces the following changes to the + standard backslash/newline handling in non-recipe lines: + * Any trailing space before the backslash is preserved + * Each backslash/newline (plus subsequent whitespace) is converted to a + single space * New command line option: --trace enables tracing of targets. When enabled the recipe to be invoked is printed even if it would otherwise be suppressed -- cgit v1.2.3