summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-02-28 14:06:11 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2015-03-07 12:23:59 +0100
commitc6ebf8db53106bafdf0233da6e8e85d6479e8df6 (patch)
treec480a0c76eb4b93ba4a351bce9a3fe61f1ffb74e
parent8831bc8ae8fa468bc917b34c96a1a8abdc5793b5 (diff)
downloadpogojig-c6ebf8db53106bafdf0233da6e8e85d6479e8df6.tar.gz
pogojig-c6ebf8db53106bafdf0233da6e8e85d6479e8df6.tar.bz2
pogojig-c6ebf8db53106bafdf0233da6e8e85d6479e8df6.zip
Added a warning for when the src directory contains files with spaces in their names.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c91ea47..f9e4008 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,10 @@ PYTHON_CMD := PYTHONPATH="support:$$PYTHONPATH" $(PYTHON)
# Used by dxf_export/main.sh
export INKSCAPE OPENSCAD
+ifneq ($(shell find src -name '* *'),)
+ $(error Error: The src directory contains files with spaces in their names, this is not supported by make)
+endif
+
# Run generate_scad.sh to get the names of all OpenSCAD files that should be generated using that same script.
GENERATED_FILES := $(addsuffix .scad,$(basename $(shell ./generate_sources.sh)))
GENERATED_SVG_FILES := $(filter %.svg, $(GENERATED_FILES))