From 8e60c1c59d20fbdcfb46fdef4d7d2166f11f2232 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 19 Mar 2018 18:09:05 +0100 Subject: [PATCH] use cli --- 012-CLI/.gitignore | 1 + 012-CLI/Makefile | 14 ++++++++++++++ 012-CLI/test.scad | 1 + 3 files changed, 16 insertions(+) create mode 100644 012-CLI/.gitignore create mode 100644 012-CLI/Makefile create mode 100644 012-CLI/test.scad diff --git a/012-CLI/.gitignore b/012-CLI/.gitignore new file mode 100644 index 0000000..e33609d --- /dev/null +++ b/012-CLI/.gitignore @@ -0,0 +1 @@ +*.png diff --git a/012-CLI/Makefile b/012-CLI/Makefile new file mode 100644 index 0000000..f85ea40 --- /dev/null +++ b/012-CLI/Makefile @@ -0,0 +1,14 @@ +OPENSCAD=openscad + +SCAD=$(wildcard *.scad) +PNG=$(SCAD:.scad=.png) + +all: $(PNG) +clean: + @rm -f *.png + +%.png: %.scad + $(OPENSCAD) -o $@ --render $< + + +.PHONY: all clean diff --git a/012-CLI/test.scad b/012-CLI/test.scad new file mode 100644 index 0000000..9981b06 --- /dev/null +++ b/012-CLI/test.scad @@ -0,0 +1 @@ +cube(10,10,center=true);