瀏覽代碼

Makefile: add a check to bail out early when the path to the openwrt directory contains spaces (#12344)

SVN-Revision: 33884
Felix Fietkau 13 年之前
父節點
當前提交
43f34a93e6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Makefile

+ 4 - 0
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