Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | SHELL=/bin/bash |
| 2 | |
| 3 | SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool |
| 4 | CNGT=/home/qi/cae-tools/cngt/cngt |
| 5 | |
| 6 | BOARD = X0=8.5mm Y0=3.5mm BOARD_Z=1.6mm ENGRAVE_Z=0.5mm |
| 7 | |
| 8 | .PHONY: all mill pos cng plot clean |
| 9 | |
| 10 | all: mill.rml |
| 11 | |
| 12 | front.gp: front.fpd |
| 13 | fped -g -1 front-cut $< - | ./filter !logo >$@; \ |
| 14 | [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; } |
| 15 | |
| 16 | logo.gp: front.fpd |
| 17 | fped -g -1 front-cut $< - | ./filter logo >$@; \ |
| 18 | [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; } |
| 19 | |
| 20 | mill.rml mill.gp: front.gp logo.gp |
| 21 | ./doit $(BOARD) CLEARANCE=3mm || \ |
| 22 | { rm -f $@; exit 1; } |
| 23 | |
| 24 | mill: mill.rml |
| 25 | PORT=/dev/ttyUSB0 $(SPOOL) mill.rml |
| 26 | |
| 27 | pos: mill.gp |
| 28 | $(CNGT) -57.4 |
| 29 | |
| 30 | cng: mill.gp |
| 31 | $(CNGT) -57.4 20 mill.gp |
| 32 | |
| 33 | plot: |
| 34 | echo 'splot "mill.gp" with lines' | gnuplot -persist |
| 35 | |
| 36 | clean: |
| 37 | rm -f front.gp mill.gp mill.rml |
| 38 |
Branches:
master
