From: Thomas Petazzoni Date: Thu, 30 Jul 2009 15:26:49 +0000 (+0200) Subject: makefile: new qstrip make function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=580c6d9b448ea8db5c9fe8f99aa43967d297903b;p=buildroot.git makefile: new qstrip make function Define a qstrip function that strips double quotes and then whitespaces around a given string. This is a very commonly needed thing, and having a function allows to remove a large quantity of hand-written definitions, followed by a dummy comment to make text editors not crazy because of the unmatching double quote. Signed-off-by: Thomas Petazzoni --- diff --git a/Makefile b/Makefile index 5683484944..fd272b5f2d 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,10 @@ else BR2_LOCAL:=$(TOPDIR)/local endif +# Strip quotes and then whitespaces +qstrip=$(strip $(subst ",,$(1))) +#")) + # Variables for use in Make constructs comma:=, empty:=