mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 08:50:38 +02:00
bacon/case/Makefile: generalized build process for all parts
... plus updated parameters for a new milling run
This commit is contained in:
parent
d00ccd8101
commit
fff8177f98
@ -8,13 +8,20 @@ GP2RML = $(CAE_TOOLS)/gp2rml/gp2rml
|
|||||||
# #2: 5, 45
|
# #2: 5, 45
|
||||||
# #3: 65, 5
|
# #3: 65, 5
|
||||||
# #3: 70, 45
|
# #3: 70, 45
|
||||||
X0 = 70
|
# Z1 = -44
|
||||||
Y0 = 45
|
# PIECE_Z = 5.5
|
||||||
Z1 = -44
|
|
||||||
|
# new run (10 45, 135 85, 7.8)
|
||||||
|
# #1: 13 45
|
||||||
|
# #2: 75 48
|
||||||
|
|
||||||
|
X0 = 75
|
||||||
|
Y0 = 48
|
||||||
|
Z1 = -50
|
||||||
PIECE = -5 -5 30 55
|
PIECE = -5 -5 30 55
|
||||||
PIECE_Z = 5.5
|
PIECE_Z = 7.9
|
||||||
Z_STEP = 2
|
Z_STEP = 2
|
||||||
CLEARANCE = 5
|
CLEARANCE = 2
|
||||||
SPEED_XY = 1
|
SPEED_XY = 1
|
||||||
SPEED_Z = 1
|
SPEED_Z = 1
|
||||||
OVERSHOOT = 0.2
|
OVERSHOOT = 0.2
|
||||||
@ -26,52 +33,58 @@ FIN_SPEED_Z = 3
|
|||||||
PARAMS = X0=$(X0)mm Y0=$(Y0)mm Z1=$(Z1)mm PIECE_Z=$(PIECE_Z)mm \
|
PARAMS = X0=$(X0)mm Y0=$(Y0)mm Z1=$(Z1)mm PIECE_Z=$(PIECE_Z)mm \
|
||||||
Z_OFFSET=$(Z_OFFSET)mm
|
Z_OFFSET=$(Z_OFFSET)mm
|
||||||
|
|
||||||
|
PARTS = top mid bot
|
||||||
|
PART = top
|
||||||
|
|
||||||
.PHONY: all plot mill pos cng clean
|
.PHONY: all plot mill pos cng clean
|
||||||
|
|
||||||
all: mill.rml finish.rml
|
all: $(PART)-mill.rml $(PART)-finish.rml
|
||||||
|
|
||||||
case.gp: case.fpd
|
case.gp: case.fpd
|
||||||
fped -g case.fpd || { rm -f $@; exit 1; }
|
fped -g case.fpd || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
top.gp: case.gp
|
$(PART).gp: case.gp
|
||||||
$(CAMEO)/fped2d2z.pl -r 0=-$(OVERSHOOT) top $^ >$@ || \
|
$(CAMEO)/fped2d2z.pl -r 0=-$(OVERSHOOT) $(PART) $^ >$@ || \
|
||||||
{ rm -f $@; exit 1; }
|
{ rm -f $@; exit 1; }
|
||||||
|
|
||||||
top-piece.gp: top.gp
|
$(PART)-piece.gp: $(PART).gp
|
||||||
./genpiece.pl -r $(PIECE) $< >$@ || { rm -f $@; exit 1; }
|
./genpiece.pl -r $(PIECE) $< >$@ || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
top-area.gp: top-piece.gp top.gp cam.sh Makefile
|
$(PART)-area.gp: $(PART)-piece.gp $(PART).gp cam.sh Makefile
|
||||||
./cam.sh PART=top CAMEO=$(CAMEO)/cameo $(PARAMS) OUT=$@ || \
|
./cam.sh PART=$(PART) CAMEO=$(CAMEO)/cameo $(PARAMS) OUT=$@ || \
|
||||||
{ rm -f $@; exit 1; }
|
{ rm -f $@; exit 1; }
|
||||||
|
|
||||||
finish.gp: top-piece.gp top.gp cam.sh Makefile
|
$(PART)-finish.gp: $(PART)-piece.gp $(PART).gp cam.sh Makefile
|
||||||
./cam.sh PART=top CAMEO=$(CAMEO)/cameo $(PARAMS) \
|
./cam.sh PART=$(PART) CAMEO=$(CAMEO)/cameo $(PARAMS) \
|
||||||
Z_OFFSET=0mm REVERSE=reverse OUT=$@ || { rm -f $@; exit 1; }
|
Z_OFFSET=0mm REVERSE=reverse OUT=$@ || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
mill.gp: top-area.gp Makefile
|
$(PART)-mill.gp: $(PART)-area.gp Makefile
|
||||||
$(CAMEO)/zstack.pl $(Z1) $(Z_STEP) $< >$@ || \
|
$(CAMEO)/zstack.pl $(Z1) $(Z_STEP) $< >$@ || \
|
||||||
{ rm -f $@; exit 1; }
|
{ rm -f $@; exit 1; }
|
||||||
|
|
||||||
mill.rml: mill.gp Makefile
|
$(PART)-mill.rml: $(PART)-mill.gp Makefile
|
||||||
$(GP2RML) $(CLEARANCE) $(SPEED_XY) $(SPEED_Z) $< >$@ || \
|
$(GP2RML) $(CLEARANCE) $(SPEED_XY) $(SPEED_Z) $< >$@ || \
|
||||||
{ rm -f $@; exit 1; }
|
{ rm -f $@; exit 1; }
|
||||||
|
|
||||||
finish.rml: finish.gp Makefile
|
$(PART)-finish.rml: $(PART)-finish.gp Makefile
|
||||||
$(GP2RML) $(CLEARANCE) $(FIN_SPEED_XY) $(FIN_SPEED_Z) \
|
$(GP2RML) $(CLEARANCE) $(FIN_SPEED_XY) $(FIN_SPEED_Z) \
|
||||||
$< >$@ || { rm -f $@; exit 1; }
|
$< >$@ || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
plot: mill.gp
|
plot: $(PART)-mill.gp
|
||||||
echo 'splot "mill.gp" with lines' | gnuplot -persist
|
echo 'splot "$(PART)-mill.gp" with lines' | gnuplot -persist
|
||||||
|
|
||||||
mill: mill.rml finish.rml
|
mill: $(PART)-mill.rml $(PART)-finish.rml
|
||||||
PORT=/dev/ttyUSB0 $(SPOOL) $^
|
PORT=/dev/ttyUSB0 $(SPOOL) $^
|
||||||
|
|
||||||
pos:
|
pos:
|
||||||
$(CNGT) 0
|
$(CNGT) 0
|
||||||
|
|
||||||
cng: mill.gp
|
cng: $(PART)-mill.gp
|
||||||
$(CNGT) $(Z1) 10 $<
|
$(CNGT) $(Z1) 10 $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f case.gp top-piece.gp top.gp top-area.gp
|
rm -f case.gp
|
||||||
rm -f mill.gp mill.rml finish.gp finish.rml
|
rm -f $(PARTS:%=%-piece.gp) $(PARTS:%=%.gp)
|
||||||
|
rm -f $(PARTS:%=%-area.gp)
|
||||||
|
rm -f $(PARTS:%=%-mill.gp) $(PARTS:%=%-mill.rml)
|
||||||
|
rm -f $(PARTS:%=%-finish.gp) $(PARTS:%=%-finish.rml)
|
||||||
|
Loading…
Reference in New Issue
Block a user