chiark / gitweb /
Makefile autogenerates scads are now .auto.scad
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Sep 2012 17:34:31 +0000 (18:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Sep 2012 17:34:31 +0000 (18:34 +0100)
.gitignore
Makefile

index 960d8cb..b6c47e6 100644 (file)
@@ -3,6 +3,6 @@
 light-bracket.stl
 *.aside
 *.stl
-*,*.ascad
+*,*.auto.scad
 .*.d
 *.tmp
index a205261..b21432a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@ CONFIG=slic3r-config.ini
 
 AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
 
-scads:         $(addsuffix .ascad, $(AUTO_TOPLEVELS))
-stls:          $(addsuffix .stl, $(AUTO_TOPLEVELS))
+scads:         $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
+stls:          $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
 
 default:
 
@@ -17,9 +17,6 @@ default:
 %.stl:         %.scad
                openscad -d .$@.d -o $@ $<
 
-%.stl:         %.ascad
-               openscad -d .$@.d -o $@ $<
-
 %.gcode:       $(CONFIG) %.stl
                $(SLIC3R) --load $^ --output $@
 
@@ -31,10 +28,10 @@ default:
 
 dovecliptest.stl: doveclip.scad
 
-%.ascad: toplevel-make Makefile toplevel-find
+%.auto.scad: toplevel-make Makefile toplevel-find
                @echo ' write $@'
                ./$< $@ >$@.tmp
                @mv -f $@.tmp $@
 
 clean:
-               rm -f *~ *.stl *,*.scad *.gcode .*.d
+               rm -f *~ *.stl *.auto.scad *.gcode .*.d