summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-03-07 12:21:04 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2015-03-07 12:24:55 +0100
commit09b8f8c1268c9b8c872ec39a09795ecbcac9d00c (patch)
tree97c9930126886532e206d717b6b97a3de2253192 /Makefile
parentb424b1bf755c675416ad716f43185ac8c89a2fb4 (diff)
downloadpogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.tar.gz
pogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.tar.bz2
pogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.zip
Support for setting the DXF export quality.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 867512a..79deb61 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
-# Used by dxf_export/main.sh
-INKSCAPE ?= inkscape
-OPENSCAD ?= openscad
-PYTHON ?= python2
+# Installation-dependent settings. You can overwrite these in a file called config.mk in the same directory as this makefile. See readme.creole.
+INKSCAPE := inkscape
+OPENSCAD := openscad
+PYTHON := python2
-PYTHON_CMD := PYTHONPATH="support:$$PYTHONPATH" $(PYTHON)
+# Settings affecting the compiled results. You can overwrite these in a file called settings.mk in the same directory as this makefile. See readme.creole.
+DXF_FLATNESS := 0.1
+
+export INKSCAPE OPENSCAD DXF_FLATNESS
-export INKSCAPE OPENSCAD
+PYTHON_CMD := PYTHONPATH="support:$$PYTHONPATH" $(PYTHON)
# All visible files in the src directory. Ignore files whose names contain spaces.
SRC_FILES := $(shell find src -not \( \( -name '.*' -or -name '* *' \) -prune \))
@@ -38,7 +41,7 @@ clean:
rm -rf $(GENERATED_FILES) $(DXF_FILES) $(STL_FILES) $(DEPENDENCY_FILES)
# Include the local configuration file and the dependency files. Needs to be included after the `all' target has been defined.
--include config.mk $(DEPENDENCY_FILES)
+-include config.mk settings.mk $(DEPENDENCY_FILES)
# Rule to convert an SVG file to a DXF file.
%.dxf: %.svg