mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 09:21:52 +02:00
c1574ce3f6
- boom/dist/dk/dk-catq.pl: new - query the Digi-Key catalog for a list of items - boom/dist/dk/dk-db.pl: enhanced - never generate more than 1000 queries per wget run (to keep argv from getting too long) - boom/dist/dk/panasonic-erj.catq, boom/dist/dk/stackpole-rmcf.catq: query scripts for dk-catq.pl - boom/lib/e12.inc: enhanced - added Rxx and Rxxx codes - boom/manu/panasonic/panasonic.gen: enhanced - added decoding for all ERJ series resistors listed at Digi-Key - boom/manu/stackpole/: (new) part number decoder for RMCF series resistors
28 lines
657 B
Makefile
28 lines
657 B
Makefile
CACHE = query.data
|
|
EQUS = panasonic-erj stackpole-rmcf
|
|
|
|
.SUFFIXES: .catq .equ
|
|
|
|
all: db/digi-key.dsc db/digi-key.inv
|
|
|
|
$(CACHE): db/digi-key.equ
|
|
awk '/^#END/ { exit } /^DIGI-KEY / { print $$2 }' $< | \
|
|
perl ./dk-db.pl query \
|
|
`[ -r $(CACHE) ] && echo '' -i $(CACHE)` >_$@ || \
|
|
{ rm -f $@ _$@; exit 1; }
|
|
mv _$@ $@
|
|
|
|
db/digi-key.equ: $(EQUS:%=db/%.equ)
|
|
cat $^ >$@ || { rm -rf $@; exit 1; }
|
|
|
|
db/digi-key.dsc: $(CACHE)
|
|
perl ./dk-db.pl dsc $< >$@ || \
|
|
{ rm -f $@; exit 1; }
|
|
|
|
db/digi-key.inv: $(CACHE)
|
|
perl ./dk-db.pl inv $< >$@ || \
|
|
{ rm -f $@; exit 1; }
|
|
|
|
.catq.equ:
|
|
perl ./dk-catq.pl $< >$@ || { rm -rf $@; exit 1; }
|