Root/labsw/mech/Makefile

Source at commit 51106cf9b34d773e72aa00385c80a9abb76b28df created 6 years 7 months ago.
By Werner Almesberger, ircstat/ML: update for 11/2013
1SHELL=/bin/bash
2
3SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
4CNGT=/home/qi/cae-tools/cngt/cngt
5
6BOARD = X0=8.5mm Y0=3.5mm BOARD_Z=1.6mm ENGRAVE_Z=0.5mm
7
8.PHONY: all mill pos cng plot clean
9
10all: mill.rml
11
12front.gp: front.fpd
13        fped -g -1 front-cut $< - | ./filter !logo >$@; \
14          [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
15
16logo.gp: front.fpd
17        fped -g -1 front-cut $< - | ./filter logo >$@; \
18          [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
19
20mill.rml mill.gp: front.gp logo.gp
21        ./doit $(BOARD) CLEARANCE=3mm || \
22          { rm -f $@; exit 1; }
23
24mill: mill.rml
25        PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
26
27pos: mill.gp
28        $(CNGT) -57.4
29
30cng: mill.gp
31        $(CNGT) -57.4 20 mill.gp
32
33plot:
34        echo 'splot "mill.gp" with lines' | gnuplot -persist
35
36clean:
37        rm -f front.gp mill.gp mill.rml
38

Archive Download this file

Branches:
master



interactive