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);