Skip to content

Commit

Permalink
New folder system
Browse files Browse the repository at this point in the history
  • Loading branch information
josefprusa committed Aug 3, 2011
1 parent 9da4ec1 commit 9690e94
Show file tree
Hide file tree
Showing 109 changed files with 50,784 additions and 1,095,255 deletions.
63 changes: 24 additions & 39 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,54 +1,39 @@
VARIANT=0
OPENSCAD:=$(shell which openscad) -D variant=$(VARIANT)
ifeq ($(VARIANT),0)
TARGET=./stl
endif
ifeq ($(VARIANT),1)
TARGET=./stl-sae
endif
target metric: OPENSCAD:=$(shell which openscad) -D variant=0 -D linear=0
target metric: TARGET=./metric-prusa
target metric-lm8uu: TARGET=./metric-prusa-linear
target metric-lm8uu: OPENSCAD:=$(shell which openscad) -D variant=0 -D linear=1
target sae: TARGET=./sae-prusa
target sae: OPENSCAD:=$(shell which openscad) -D variant=1 -D linear=0
target sae-lm8uu: TARGET=./sae-prusa-linear
target sae-lm8uu: OPENSCAD:=$(shell which openscad) -D variant=1 -D linear=1

PARTS=$(TARGET)/bar-clamp.stl $(TARGET)/belt-clamp.stl $(TARGET)/coupling.stl $(TARGET)/endstop-holder.stl $(TARGET)/frame-vertex-with-foot.stl $(TARGET)/frame-vertex-without-foot.stl $(TARGET)/pla-bushing.stl $(TARGET)/pulley.stl $(TARGET)/rod-clamp.stl $(TARGET)/x-carriage.stl $(TARGET)/x-end-motor.stl $(TARGET)/x-end-idler.stl $(TARGET)/y-motor-bracket.stl $(TARGET)/z-motor-mount.stl
PARTS=$(TARGET)/bar-clamp.stl $(TARGET)/belt-clamp.stl $(TARGET)/coupling.stl $(TARGET)/endstop-holder.stl $(TARGET)/frame-vertex-with-foot.stl $(TARGET)/frame-vertex-without-foot.stl $(TARGET)/pulley.stl $(TARGET)/rod-clamp.stl $(TARGET)/x-carriage.stl $(TARGET)/x-end-motor.stl $(TARGET)/x-end-idler.stl $(TARGET)/y-motor-bracket.stl $(TARGET)/z-motor-mount.stl

TARGETS=$(PARTS)
help:
@echo Options:
@echo make all: makes the parts, the makerbot plates, the mendel plate and the extruder
@echo make calibration: makes calibration part
@echo make parts: makes all the individual parts
@echo make extruder: makes all the extruder parts
@echo make mbplates: makes all the makerbot plates
@echo make mendelplate: makes the mendel plate
@echo make metric: makes metric parts
@echo make metric-lm8uu: makes metric parts
@echo make sae: makes metric parts
@echo make sae-lm8uu: makes metric parts
@echo make clean: deletes the stl directory with the output files
@echo adding VARIANT=1 to any of these commands generates SAE parts
@echo SAE parts get saved in ./stl-sae, metric parts in ./stl
all: parts mbplates mendelplate extruder
calibration: $(TARGET)/calibration.stl $(TARGET)/calibration.stl
extruder: $(TARGET)/wade.stl $(TARGET)/wadebits.stl
mendelplate: parts extruder $(TARGET)/mendelplate.stl
$(TARGET)/mendelplate.stl: plate1.scad parts
$(OPENSCAD) -s $(TARGET)/mendelplate.stl plate1.scad
mbplates: makerbot.scad parts $(TARGET)/mbotplate1.stl $(TARGET)/mbotplate2.stl $(TARGET)/mbotplate3.stl $(TARGET)/mbotplate4.stl $(TARGET)/mbotplate5.stl
$(TARGET)/mbotplate1.stl: $(TARGET)/frame-vertex-with-foot.stl $(TARGET)/frame-vertex-without-foot.stl $(TARGET)/bar-clamp.stl $(TARGET)/belt-clamp.stl
$(OPENSCAD) -D platenum=1 -s $(TARGET)/mbotplate1.stl makerbot.scad
$(TARGET)/mbotplate2.stl: $(TARGET)/x-carriage.stl $(TARGET)/coupling.stl $(TARGET)/rod-clamp.stl $(TARGET)/belt-clamp.stl $(TARGET)/bar-clamp.stl
$(OPENSCAD) -D platenum=2 -s $(TARGET)/mbotplate2.stl makerbot.scad
$(TARGET)/mbotplate3.stl: $(TARGET)/endstop-holder.stl $(TARGET)/x-end-idler.stl $(TARGET)/z-motor-mount.stl
$(OPENSCAD) -D platenum=3 -s $(TARGET)/mbotplate3.stl makerbot.scad
$(TARGET)/mbotplate4.stl: $(TARGET)/x-end-motor.stl $(TARGET)/bar-clamp.stl
$(OPENSCAD) -D platenum=4 -s $(TARGET)/mbotplate4.stl makerbot.scad
$(TARGET)/mbotplate5.stl: $(TARGET)/pulley.stl $(TARGET)/endstop-holder.stl $(TARGET)/y-motor-bracket.stl
$(OPENSCAD) -D platenum=5 -s $(TARGET)/mbotplate5.stl makerbot.scad
metric : parts
metric-lm8uu : parts
sae : parts
sae-lm8uu : parts
parts : $(TARGET) $(TARGETS)
$(TARGET) :
mkdir -p $(TARGET)
$(TARGET)/%.stl : %.scad
$(TARGET)/%.stl : source/%.scad
@echo "Processing $@"
$(OPENSCAD) -s $@ $(subst $(subst ./,,$(TARGET)),.,$(subst .stl,.scad,$@))
$(TARGET)/frame-vertex-with-foot.stl: frame-vertex.scad
$(OPENSCAD) -D basefoot=true -s $@ frame-vertex.scad
$(TARGET)/frame-vertex-without-foot.stl: frame-vertex.scad
$(OPENSCAD) -D basefoot=false -s $@ frame-vertex.scad
$(TARGET)/y-motor-bracket.stl: ybrac-t.scad
$(OPENSCAD) -s $(TARGET)$@ $(subst $(TARGET),.,source$(subst .stl,.scad,$@))
$(TARGET)/frame-vertex-with-foot.stl: source/frame-vertex.scad
$(OPENSCAD) -D basefoot=true -s $@ source/frame-vertex.scad
$(TARGET)/frame-vertex-without-foot.stl: source/frame-vertex.scad
$(OPENSCAD) -D basefoot=false -s $@ source/frame-vertex.scad
$(TARGET)/y-motor-bracket.stl: source/ybrac-t.scad
$(OPENSCAD) -s $@ ybrac-t.scad

#$(PARTS) : $(TARGET)
Expand Down
39 changes: 0 additions & 39 deletions SkeinforgeMe.py

This file was deleted.

152 changes: 0 additions & 152 deletions barbell fun.scad

This file was deleted.

Binary file removed bearing-guide.stl
Binary file not shown.
Loading

0 comments on commit 9690e94

Please sign in to comment.