Browse Source

use cli

master
Nicolas Massé 8 years ago
parent
commit
8e60c1c59d
  1. 1
      012-CLI/.gitignore
  2. 14
      012-CLI/Makefile
  3. 1
      012-CLI/test.scad

1
012-CLI/.gitignore

@ -0,0 +1 @@
*.png

14
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

1
012-CLI/test.scad

@ -0,0 +1 @@
cube(10,10,center=true);
Loading…
Cancel
Save