Permalink
Browse files

Merge https://github.com/clothbot/PrusaMendel

Conflicts:
	mbotplate1.stl
	plate1.stl
	x-carriage.stl
	x-end-motor.stl
	z-motor-mount.stl
  • Loading branch information...
colah committed Nov 16, 2010
2 parents 425d1cd + 33f72ba commit ec158ffe68cfda24ceb47beaf8f77f34e4e1e267
View
@@ -0,0 +1,67 @@
+UNAME := $(shell uname)
+ifeq ($(UNAME), Darwin)
+OPENSCAD:=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
+endif
+ifneq ($(UNAME), Darwin)
+OPENSCAD:=$(shell which openscad)
+endif
+
+BUILDDIR=./build
+
+# PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing prusalogo rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount
+## prusalogo.scad depends on bitmap.scad
+PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount
+
+.PHONY : usage all clean $(PARTS) MakerbotPlates MendelPlate
+
+default : usage
+
+usage :
+ @echo "Usage 'make parts'"
+ @echo " make parts MakerbotPlates"
+ @echo " make parts MendelPlate"
+ @echo " make OPENSCAD=\`which openscad\` parts MakerbotPlates"
+ @echo "Variable Values:"
+ @echo " BUILDDIR = $(BUILDDIR)"
+ @echo " OPENSCAD = $(OPENSCAD)"
+ @echo " PARTS = $(PARTS)"
+ @echo " UNAME = $(UNAME)"
+
+all : parts MakerbotPlates
+
+parts : $(PARTS)
+
+$(BUILDDIR) :
+ mkdir -p $(BUILDDIR)
+
+MakerbotPlates : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ cp makerbot.scad $(BUILDDIR)
+ cp frame-vertex-foot.stl $(BUILDDIR)
+ cp prusalogo.stl $(BUILDDIR)
+ cp y-motor-bracket_1off.stl $(BUILDDIR)
+ cp z-bar-top-clamp_4off.stl $(BUILDDIR)
+ $(OPENSCAD) -D render_plate=1 -s $(BUILDDIR)/mbplate1.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=2 -s $(BUILDDIR)/mbplate2.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=3 -s $(BUILDDIR)/mbplate3.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=4 -s $(BUILDDIR)/mbplate4.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=5 -s $(BUILDDIR)/mbplate5.stl $(BUILDDIR)/makerbot.scad
+
+MendelPlate : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ cp plate1.scad $(BUILDDIR)
+ cp frame-vertex-foot.stl $(BUILDDIR)
+ cp prusalogo.stl $(BUILDDIR)
+ cp y-motor-bracket_1off.stl $(BUILDDIR)
+ cp z-bar-top-clamp_4off.stl $(BUILDDIR)
+ $(OPENSCAD) -s $(BUILDDIR)/plate1.stl $(BUILDDIR)/plate1.scad
+
+$(PARTS) : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ @echo "Processing $@"
+ $(OPENSCAD) -s $(BUILDDIR)/$@.stl $@.scad
+
+$(BUILDDIR)/pulley.stl : $(BUILDDIR)
+ @echo "Fetching nophead's pulley.stl..."
+ pushd $(BUILDDIR); wget http://www.thingiverse.com/download:5914; popd
+
+clean :
+ $(RM) -rf $(BUILDDIR)
+
Oops, something went wrong.

0 comments on commit ec158ff

Please sign in to comment.