1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-21 11:12:26 +02:00
wernermisc/m1/case/Makefile

34 lines
656 B
Makefile
Raw Normal View History

SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
CNGT=/home/qi/cae-tools/cngt/cngt
Z0=-55.0
BOARD=X0=5.0mm Y0=0.0mm Z0=$(Z0)mm BOARD_Z=4.5mm
TASK=Y=1
.PHONY: all front rear cng clean
all: front.rml rear.rml
front.gp: case.fpd
fped -g -1 M1-front $< $@
rear.gp: case.fpd
fped -g -1 M1-rear $< $@
%.rml: %.gp
./doit `basename $< .gp` $(BOARD) $(TASK) CLEARANCE=5mm || \
{ rm -f $@; exit 1; }
front: front.rml
PORT=/dev/ttyUSB0 $(SPOOL) $<
rear: rear.rml
PORT=/dev/ttyUSB0 $(SPOOL) $<
cng: front.gp
$(CNGT) $(Z0) 20 front.gp
clean:
rm -f front.gp _front.gp front.rml
rm -f rear.gp _rear.gp rear.rml