Makefile: globally define variables used at different places
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 25 Jan 2009 20:19:01 +0000 (20:19 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 25 Jan 2009 20:19:01 +0000 (20:19 -0000)
$(comma) and $(space) are used in packages and the toolchain.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Makefile
package/directfb/directfb.mk
toolchain/gcc/gcc-uclibc-3.x.mk

index 6b12c76c5d9180042c9d228c514db2f815ae879e..a55d9bbb992d4f7c7acbbc93a0f8de4542693831 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,11 @@ else
 BR2_LOCAL:=$(TOPDIR)/local
 endif
 
+# Variables for use in Make constructs
+comma:=,
+empty:=
+space:=$(empty) $(empty)
+
 # $(shell find . -name *_defconfig |sed 's/.*\///')
 # Pull in the user's configuration file
 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
index cbf15bc720d6cbc45b2cc6d8f88ea2b6be942386..1aa38c7e7b0d4719c18d2a1c35b3e08941e1f208 100644 (file)
@@ -52,9 +52,6 @@ endif
 ifeq ($(DIRECTFB_GFX),)
 DIRECTFB_GFX:=none
 else
-comma:=,
-empty:=
-space:=$(empty) $(empty)
 DIRECTFB_GFX:=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
 endif
 
@@ -75,9 +72,6 @@ endif
 ifeq ($(DIRECTFB_INPUT),)
 DIRECTFB_INPUT:=none
 else
-comma:=,
-empty:=
-space:=$(empty) $(empty)
 DIRECTFB_INPUT:=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
 endif
 
index fc59b6bf65cc4fb736f2973f6192fc90dfccc9b8..368ac8ee9bc1f645e9ee80c7652d05ce116202c1 100644 (file)
@@ -233,7 +233,6 @@ gcc_initial-dirclean:
 # affect gcc-target. However, I haven't tested gcc-target yet so no
 # guarantees. mjn3
 
-comma:=,
 GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
 $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ)
        mkdir -p $(GCC_BUILD_DIR2)