From 43f34a93e6d61d206126b47c92d999b286f5a7c8 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 21 Oct 2012 02:00:11 +0000
Subject: [PATCH] Makefile: add a check to bail out early when the path to the
 openwrt directory contains spaces (#12344)

SVN-Revision: 33884
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 348e645005..5257a990dc 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,10 @@ LC_ALL:=C
 LANG:=C
 export TOPDIR LC_ALL LANG
 
+empty:=
+space:= $(empty) $(empty)
+$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt directory must not include any spaces))
+
 world:
 
 include $(TOPDIR)/include/host.mk
-- 
GitLab