eris2206

Documentation: http://frombelow.net/projects/eris2206/
Clone: git clone https://git.frombelow.net/eris2206.git
Log | Files | Refs | Submodules | README | LICENSE

Makefile (698B)


      1 SVG=acryl_top_plate.svg matrix_back.svg control_panel.svg \
      2 	box_left_side.svg box_right_side.svg box_front.svg box_back.svg \
      3 	bottom_screw_mount_front.svg bottom_screw_mount_back.svg box_bottom.svg
      4 STL=circuit_board_holder.stl icestick_base.stl icestick_strap.stl
      5 
      6 DST_STL=./dst/stl
      7 DST_SVG=./dst/svg
      8 
      9 ALL_TARGETS=$(addprefix $(DST_STL)/, $(STL)) $(addprefix $(DST_SVG)/, $(SVG))
     10 
     11 
     12 all:	$(SVG) $(STL)
     13 
     14 %.svg:	case.scad
     15 	openscad -o $(DST_SVG)/$@ -D "mode=\"`basename -s .svg $@`\"" ./case.scad 
     16 
     17 %.stl:	case.scad
     18 	openscad -o $(DST_STL)/$@ -D "mode=\"`basename -s .stl $@`\"" ./case.scad 
     19 
     20 clean:
     21 	rm -f $(DST_SVG)/*.svg $(DST_STL)/*.gcode $(DST_STL)/*.g3drem $(DST_STL)/*.stl
     22 
     23 .phony: all clean