mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 13:30:38 +02:00
34 lines
658 B
Makefile
34 lines
658 B
Makefile
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=3.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.rml
|
|
$(CNGT) $(Z0) 20 _front.gp
|
|
|
|
clean:
|
|
rm -f front.gp _front.gp front.rml
|
|
rm -f rear.gp _rear.gp rear.rml
|