1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 14:10:37 +02:00
ben-wpan/bom/Makefile
Werner Almesberger c0052faa25 BOM work in progress. Completed generation of capacitor characteristics.
- bom/Makefile (INV): added project-local inventory
- bom/Makefile (CHR): auto-populate from $(GEN)
- bom/Makefile: added generation of characteristics for Johanson and Murata
  parts
- bom/Makefile (dk/digi-key.dsc): need this target to generate digi-key.dsc
- bom/Makefile (spotless): remove generated .chr files based on $(GEN)
- bom/atrf.equ, bom/dk/digi-key.equ: added the less expensive Johanson
  2450FB15L0001 as alternative for the Wuerth 748421245
- bom/dk/digi-key.equ: added more capacitors, including specific RF caps
- bom/atrf.inv: renamed test-point from PAD_60x60 to TST
- bom/avx.gen, bom/johanson.gen, bom/tdk.gen, bom/yageo-cap.gen: corrected
  the part number parsers and added more product families
2010-09-12 15:19:38 -03:00

67 lines
1.7 KiB
Makefile

BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
KITS=1
EQU=atrf.equ dk/digi-key.equ
INV=atrf.inv dk/digi-key.inv
GEN=avx.gen johanson.gen murata.gen tdk.gen yageo-cap.gen
CHR=$(GEN:%.gen=%.chr)
.PHONY: all again show-atusd spotless
all: atusd.ord
again:
$(MAKE) spotless
$(MAKE) all
atusd.ord: atusd.par $(INV) $(EQU)
$(BOOM) part2order $(KITS) $(INV) $(EQU) atusd.par >$@ || \
{ rm -rf $@; exit 1; }
atusd.par: $(EQU) $(INV) $(CHR) ../atusd/atusd.lst atrf.sub
$(BOOM) bom2part $(EQU) $(INV) $(CHR) \
../atusd/atusd.lst atrf.sub \
>$@ || { rm -rf $@; exit 1; }
avx.chr: dk/digi-key.equ avx.gen
$(BOOM) gen2chr AVX dk/digi-key.equ avx.gen >$@ || \
{ rm -f $@; exit 1; }
johanson.chr: dk/digi-key.equ johanson.gen
$(BOOM) gen2chr JOHANSON dk/digi-key.equ johanson.gen >$@ || \
{ rm -f $@; exit 1; }
murata.chr: dk/digi-key.equ murata.gen
$(BOOM) gen2chr MURATA dk/digi-key.equ murata.gen >$@ || \
{ rm -f $@; exit 1; }
tdk.chr: dk/digi-key.equ tdk.gen
$(BOOM) gen2chr TDK dk/digi-key.equ tdk.gen >$@ || \
{ rm -f $@; exit 1; }
yageo-cap.chr: dk/digi-key.equ yageo-cap.gen
$(BOOM) gen2chr YAGEO dk/digi-key.equ yageo-cap.gen >$@ || \
{ rm -f $@; exit 1; }
dk/digi-key.inv:
$(MAKE) -C dk digi-key.inv
dk/digi-key.dsc:
$(MAKE) -C dk digi-key.dsc
SHOW_PRETTY = (echo '\#ORD'; grep '^$(2) ' $(1).ord ; ) | \
$(BOOM) prettyord - $(3) | \
sed 's/^... //' | \
awk '{ s += $$(NF); if ($$(NF)+0) n++; print; } \
END { print "$(4)", s, "items:", n }'
show-atusd: atusd.ord dk/digi-key.dsc
$(call SHOW_PRETTY,atusd,DIGI-KEY,dk/digi-key.dsc,USD)
spotless:
$(MAKE) -C dk spotless
rm -f atusd.par atusd.ord
rm -f $(GEN:%.gen=%.chr)