From: nbd Date: Sun, 21 Oct 2012 02:00:11 +0000 (+0000) Subject: Makefile: add a check to bail out early when the path to the openwrt directory contai... X-Git-Tag: fast2504n-3.10.28-merged~4682 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=6769c61b1eb52e787aace0f9ab52eb19b8a2a389;p=openwrt.git Makefile: add a check to bail out early when the path to the openwrt directory contains spaces (#12344) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33884 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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