1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-01 19:53:43 +02:00
ben-wpan/bom/Makefile
Werner Almesberger d53c2c2b72 added generation of SMT fab file package (in progress)
- atben/README-SMT, atusb/README-SMT: description for SMT fab files
- bom/Makefile (%-smt.csv, spotless): renamed *-smt.csv to *-bom.csv
- makefiles/Makefile.kicad (fab): split into "fab" (PCB and SMT) and
  fab-pcb (previous "fab"; only PCB)
- makefiles/Makefile.kicad (fab-smt): added packaging process for SMT
  fab files
2011-03-23 01:31:34 -03:00

53 lines
1.2 KiB
Makefile

BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
BOOM2=../../eda-tools/boom
BOOM_CONFIG=$(BOOM2)/boom-config
KITS=1
EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
CHR=atrf.chr $(shell $(BOOM_CONFIG) chr)
.PHONY: all again spotless
.PRECIOUS: %.par %.lst
all: atusb.ord atben.ord cntr.ord
again:
$(MAKE) spotless
$(MAKE) all
%.ord: %.par $(INV) $(EQU)
$(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
$(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
dk/digi-key.inv:
$(MAKE) -C dk digi-key.inv
dk/digi-key.dsc:
$(MAKE) -C dk digi-key.dsc
%.lst: ../%/*.sch ../%/*.cmp
eeschema --bom `pwd`/../$*/$*.sch
mv ../$*/$*.lst .
show-%: %.ord $(DSC)
grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
sed 's/^... //'
%-bom.csv: %.ord $(DSC)
grep -vw ATRF $< | $(BOOM) prettyord -f -c -r - $(DSC) >$@ || \
{ rm -f $@; exit 1; }
spotless:
$(MAKE) -C dk spotless
rm -f atusb.lst atusb.par atusb.ord
rm -f atben.lst atben.par atben.ord
rm -f atusb-bom.csv atben-bom.csv cntr-bom.csv
rm -f cntr.lst cntr.par cntr.ord