]> Git Repo - buildroot-mgba.git/commitdiff
makefile: new qstrip make function
authorThomas Petazzoni <[email protected]>
Thu, 30 Jul 2009 15:26:49 +0000 (17:26 +0200)
committerThomas Petazzoni <[email protected]>
Sat, 5 Sep 2009 12:43:16 +0000 (14:43 +0200)
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 <[email protected]>
Makefile

index 56834849448b5bc37954bdc3737e2acd922474b4..fd272b5f2ddcd24702df844954aa1d8bfa0119a6 100644 (file)
--- 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:=
This page took 0.030291 seconds and 4 git commands to generate.