mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 10:36:17 +02:00
labsw/mech/Makefile: fixed error handling of pipes; target "pos" for positioning
This commit is contained in:
parent
d0309ad6d1
commit
3dc74fcac8
@ -1,17 +1,19 @@
|
|||||||
|
SHELL=/bin/bash
|
||||||
|
|
||||||
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
|
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
|
||||||
CNGT=/home/qi/cae-tools/cngt/cngt
|
CNGT=/home/qi/cae-tools/cngt/cngt
|
||||||
|
|
||||||
.PHONY: all mill cng plot clean
|
.PHONY: all mill pos cng plot clean
|
||||||
|
|
||||||
all: mill.rml
|
all: mill.rml
|
||||||
|
|
||||||
front.gp: front.fpd
|
front.gp: front.fpd
|
||||||
fped -g -1 front-cut $< - | ./filter !logo >$@ || \
|
fped -g -1 front-cut $< - | ./filter !logo >$@; \
|
||||||
{ rm -f $@; exit 1; }
|
[ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
logo.gp: front.fpd
|
logo.gp: front.fpd
|
||||||
fped -g -1 front-cut $< - | ./filter logo >$@ || \
|
fped -g -1 front-cut $< - | ./filter logo >$@; \
|
||||||
{ rm -f $@; exit 1; }
|
[ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
mill.rml mill.gp: front.gp logo.gp
|
mill.rml mill.gp: front.gp logo.gp
|
||||||
./doit BOARD_Z=1.6mm ENGRAVE_Z=0.5mm CLEARANCE=3mm || \
|
./doit BOARD_Z=1.6mm ENGRAVE_Z=0.5mm CLEARANCE=3mm || \
|
||||||
@ -20,6 +22,9 @@ mill.rml mill.gp: front.gp logo.gp
|
|||||||
mill: mill.rml
|
mill: mill.rml
|
||||||
PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
|
PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
|
||||||
|
|
||||||
|
pos: mill.gp
|
||||||
|
$(CNGT) -57.4
|
||||||
|
|
||||||
cng: mill.gp
|
cng: mill.gp
|
||||||
$(CNGT) -57.4 20 mill.gp
|
$(CNGT) -57.4 20 mill.gp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user