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 <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2009-07-30 17:26:49 +02:00
parent 4d0c00588f
commit 580c6d9b44
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ else
BR2_LOCAL:=$(TOPDIR)/local BR2_LOCAL:=$(TOPDIR)/local
endif endif
# Strip quotes and then whitespaces
qstrip=$(strip $(subst ",,$(1)))
#"))
# Variables for use in Make constructs # Variables for use in Make constructs
comma:=, comma:=,
empty:= empty:=