mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
m1/case/: added rear panel with JTAG hole
This commit is contained in:
@@ -1,19 +1,33 @@
|
||||
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
|
||||
CNGT=/home/qi/cae-tools/cngt/cngt
|
||||
|
||||
BOARD=X0=5.0mm Y0=0.0mm Z0=-56.0mm BOARD_Z=4mm
|
||||
Z0=-55.0
|
||||
BOARD=X0=5.0mm Y0=0.0mm Z0=$(Z0)mm BOARD_Z=4.5mm
|
||||
TASK=Y=1
|
||||
|
||||
.PHONY: all mill clean
|
||||
.PHONY: all front rear cng clean
|
||||
|
||||
all: mill.rml
|
||||
all: front.rml rear.rml
|
||||
|
||||
case.gp: case.fpd
|
||||
fped -g $<
|
||||
front.gp: case.fpd
|
||||
fped -g -1 M1-front $< $@
|
||||
|
||||
mill.rml: case.gp
|
||||
./doit $(BOARD) CLEARANCE=5mm || { rm -f $@; exit 1; }
|
||||
rear.gp: case.fpd
|
||||
fped -g -1 M1-rear $< $@
|
||||
|
||||
mill: mill.rml
|
||||
PORT=/dev/ttyUSB0 $(SPOOL) mill.rml
|
||||
%.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 case.gp mill.gp mill.rml
|
||||
rm -f front.gp _front.gp front.rml
|
||||
rm -f rear.gp _rear.gp rear.rml
|
||||
|
||||
Reference in New Issue
Block a user