Move everything to box_frame/
[clinton/prusa3.git] / box_frame / Makefile
diff --git a/box_frame/Makefile b/box_frame/Makefile
new file mode 100644 (file)
index 0000000..59d06dc
--- /dev/null
@@ -0,0 +1,14 @@
+#openscad -o output/bushing.stl bushing.scad
+
+INCLUDES = $(wildcard inc/*.scad)
+
+MODELS = $(filter-out configuration.scad, $(wildcard *.scad))
+
+STL_FILES_1 = $(foreach src, $(MODELS),output/$(src))
+STL_FILES = $(STL_FILES_1:%.scad=%.stl)
+
+all: $(STL_FILES)
+
+output/%.stl: %.scad $(INCLUDES) configuration.scad
+       mkdir -p output
+       openscad -o $@ $<