From 474034e7e60298147dcece8b034d5b849017dfc0 Mon Sep 17 00:00:00 2001 From: Johann Rocholl Date: Wed, 17 Apr 2013 09:44:59 -0700 Subject: [PATCH] Added Makefile for openscad with automatic dependencies. --- .gitignore | 1 + Makefile | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index d971441..fa4e8b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.stl +*.deps *.gcode *.gif *.png diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..694014b --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +# Explicit wildcard expansion suppresses errors when no files are found. +include $(wildcard *.deps) + +%.stl: %.scad + openscad -o $@ -m make -d $*.deps $< + +all: frame_top.stl frame_motor.stl