summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--Makefile4
-rw-r--r--index.html5
2 files changed, 9 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)
diff --git a/index.html b/index.html
index 99c4e8a..d13dd7e 100644
--- a/index.html
+++ b/index.html
@@ -184,6 +184,11 @@
the first packages are built.
</p>
+ <p>
+ Due to limitations of GNU Make, the path of MXE is not allowed
+ to contain any whitespace characters.
+ </p>
+
<h3 id="tutorial-2">Step 2: System-wide Installation (optional)</h3>
<p>