On Tue, Mar 6, 2012 at 4:15 PM, Paul Smith <[email protected]> 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: ;@:

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to