#!/bin/sh PATH=$PATH:/home/qi/cae-tools/cameo PATH=$PATH:/home/moko/svn.openmoko.org/developers/werner/cncmap/gp2rml cameo <mill.rml gp2rml 2 0.1 0.5 drill.gp >drill.rml cat <Makefile.mkmk SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool CNGT=/home/qi/cae-tools/cngt/cngt .PHONY: mill drill cng plot dplot mill: PORT=/dev/ttyUSB0 \$(SPOOL) mill.rml drill: PORT=/dev/ttyUSB0 \$(SPOOL) drill.rml cng: \$(CNGT) -57.4 20 mill.gp plot: echo 'plot "drill.gp" with points, "mill.gp" with lines' | \ gnuplot -persist dplot: echo 'plot "< sed /^\$\$/d drill.gp" with linespoints' | \ gnuplot -persist clean:: rm -f mill.gp mill.rml drill.gp drill.rml EOF