help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backslash does not simply continue line?


From: David Boyce
Subject: Re: backslash does not simply continue line?
Date: Tue, 6 Mar 2012 23:05:14 -0500

On Tue, Mar 6, 2012 at 4:15 PM, Paul Smith <address@hidden> wrote:
> The problem is that this is not really useful.  Very often you don't
> want to remove ALL space.  You just want to be able to split a long line
> without introducing an extraneous space (but still preserving the
> non-extraneous ones).

Ah, good point. Maybe the following is a useful workaround?

# Note: 2 blank lines between define/endef
define \n


endef

define v1
line 1
line 2
line 3
endef
$(info v1=$(v1))

v2 := $(subst $(\n),,$(v1))
$(info v2=$(v2))

all: ;@:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]