1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 12:34:05 +02:00
wernermisc/labsw/mech/Makefile

38 lines
830 B
Makefile

SHELL=/bin/bash
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
CNGT=/home/qi/cae-tools/cngt/cngt
BOARD = X0=8.5mm Y0=3.5mm BOARD_Z=1.6mm ENGRAVE_Z=0.5mm
.PHONY: all mill pos cng plot clean
all: mill.rml
front.gp: front.fpd
fped -g -1 front-cut $< - | ./filter !logo >$@; \
[ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
logo.gp: front.fpd
fped -g -1 front-cut $< - | ./filter logo >$@; \
[ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
mill.rml mill.gp: front.gp logo.gp
./doit $(BOARD) CLEARANCE=3mm || \
{ rm -f $@; exit 1; }
mill: mill.rml
PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
pos: mill.gp
$(CNGT) -57.4
cng: mill.gp
$(CNGT) -57.4 20 mill.gp
plot:
echo 'splot "mill.gp" with lines' | gnuplot -persist
clean:
rm -f front.gp mill.gp mill.rml