<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 5:53 PM, John Crispin <span dir="ltr"><<a href="mailto:blogic@openwrt.org" target="_blank">blogic@openwrt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Alexandru,<br>
<br>
what do you need this for ?<br>
<br>
John<br>
<br>
On 12/03/2015 20:14, Alexandru Ardelean wrote:<br>
> To be used for stuff like $(subst $(space),$(newline),$(SOME_VAR))<br>
><br>
> Signed-off-by: Alexandru Ardelean <<a href="mailto:ardeleanalex@gmail.com">ardeleanalex@gmail.com</a>> ---<br>
> <a href="http://rules.mk" target="_blank">rules.mk</a> | 5 +++++ 1 file changed, 5 insertions(+)<br>
><br>
> diff --git a/<a href="http://rules.mk" target="_blank">rules.mk</a> b/<a href="http://rules.mk" target="_blank">rules.mk</a> index 078ebe3..e61cc3f 100644 ---<br>
> a/<a href="http://rules.mk" target="_blank">rules.mk</a> +++ b/<a href="http://rules.mk" target="_blank">rules.mk</a> @@ -30,6 +30,11 @@ define sep<br>
><br>
> endef<br>
><br>
> +define newline + + +endef + _SINGLE=export MAKEFLAGS=$(space);<br>
> CFLAGS:= ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst<br>
> i686,i386,$(call qstrip,$(CONFIG_ARCH)))))<br>
><br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div><div class="gmail_extra">Hello,<br></div><div class="gmail_extra">I'd need it for the Python package:<br><a href="https://github.com/openwrt/packages/blob/master/lang/python/Makefile">https://github.com/openwrt/packages/blob/master/lang/python/Makefile</a><br></div><div class="gmail_extra">I am generating filespecs from iterable variables.<br></div><div class="gmail_extra"></div><div class="gmail_extra"><br></div><div class="gmail_extra">I can live with just leaving it in the Python Makefile, but I was thinking that since I'm going to replicate this in Python3, I could probably ask to put it in a more common place.<br></div><div class="gmail_extra">Not sure if it will be useful to anyone else ever.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Semi-offtopic: I do not like the filespec approach in the Python package either, but it was there since before I picked up that package.<br></div><div class="gmail_extra">I'll probably remove/rework that later when I feel like dealing with fallout from users of the Python package.<br></div><div class="gmail_extra"><br></div></div>