mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 12:55:20 +02:00
34 lines
656 B
Makefile
34 lines
656 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=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
|