summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-09-04 03:31:55 (GMT)
committerMXE <mxe@mxe.cc>2014-09-04 03:31:55 (GMT)
commit93f5573c6fd08b9243479d21bbbc2b0b12a7f525 (patch)
tree7d1b372b7848139951503c5e2cf7aa33d9c7d86b /Makefile
parent9279bedac05d067229ee3b00f0a193f90082e041 (diff)
downloadmxe-93f5573c6fd08b9243479d21bbbc2b0b12a7f525.zip
mxe-93f5573c6fd08b9243479d21bbbc2b0b12a7f525.tar.gz
mxe-93f5573c6fd08b9243479d21bbbc2b0b12a7f525.tar.bz2
Explicitly disallow paths with whitespace
It didn't work anyway even before this commit. Workarounds #490.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7f7e6f0..11bd24e 100644
--- a/Makefile
+++ b/Makefile
@@ -176,6 +176,10 @@ DOWNLOAD_PKG_ARCHIVE = \
echo; \
rm -f '$(PKG_DIR)/$($(1)_FILE)'; )
+ifneq ($(words $(PWD)),1)
+ $(error GNU Make chokes on paths with spaces)
+endif
+
ifeq ($(IGNORE_SETTINGS),yes)
$(info [ignore settings.mk])
else ifeq ($(wildcard $(PWD)/settings.mk),$(PWD)/settings.mk)