2011-09-05 02:36:30 +03:00
|
|
|
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
|
|
|
|
CNGT=/home/qi/cae-tools/cngt/cngt
|
|
|
|
|
|
|
|
.PHONY: all mill cng plot clean
|
|
|
|
|
|
|
|
all: mill.rml
|
|
|
|
|
|
|
|
front.gp: front.fpd
|
|
|
|
fped -g -1 front-cut $< - | ./filter !logo >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
logo.gp: front.fpd
|
|
|
|
fped -g -1 front-cut $< - | ./filter logo >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
mill.rml mill.gp: front.gp logo.gp
|
|
|
|
./doit BOARD_Z=1.6mm CLEARANCE=3mm || { rm -rf $@; exit 1; }
|
|
|
|
|
2011-09-05 02:50:47 +03:00
|
|
|
mill: mill.rml
|
2011-09-05 02:36:30 +03:00
|
|
|
PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
|
|
|
|
|
|
|
|
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
|