From a0b064bd79103c229fd34f1869163e71286386c5 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 27 Dec 2010 23:37:10 -0300 Subject: [PATCH] atusb/cam2/: streamlined CAM data processing, added generation of prerequisites - mkmk: call generated makefile "Makefile.mkmk" - Makefile: generate mkmk prerequisites, run mkmk, and execute targets in Makefile.mkmk --- atusb/cam2/Makefile | 14 ++++++++++++++ atusb/cam2/mkmk | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 atusb/cam2/Makefile diff --git a/atusb/cam2/Makefile b/atusb/cam2/Makefile new file mode 100644 index 0000000..70c8af6 --- /dev/null +++ b/atusb/cam2/Makefile @@ -0,0 +1,14 @@ +.PHONY: all + +all: Makefile.mkmk + +Makefile.mkmk: mkmk ../atusb.drl ../atusb-PCB_Edges.gbr + ./mkmk + +../atusb.drl: ../atusb.brd + pcbnew --drill `pwd`/../atusb.brd + +../atusb-PCB_Edges.gbr: ../atusb.brd + pcbnew --plot=gerber -l PCB_Edges `pwd`/../atusb.brd + +-include Makefile.mkmk diff --git a/atusb/cam2/mkmk b/atusb/cam2/mkmk index 2a96cb3..3f2113c 100755 --- a/atusb/cam2/mkmk +++ b/atusb/cam2/mkmk @@ -38,7 +38,7 @@ gp2rml 2 0.5 0.5 mill.gp >mill.rml gp2rml 2 0.1 0.5 drill.gp >drill.rml -cat <Makefile +cat <Makefile.mkmk SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool CNGT=/home/qi/cae-tools/cngt/cngt