From: Felix Fietkau 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-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=04b49fc7722f931a0c72d13a4a7055d8e59d0764;hp=8e4d23cf23e0d6e4dcfa74769b28bdae5be62556;ds=sidebyside Makefile: add a check to bail out early when the path to the openwrt directory contains spaces (#12344) SVN-Revision: 33884 --- 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