Root/
Source at commit bf0de45 created 13 years 5 months ago. By Werner Almesberger, Added Yageo RC series chip resistors. | |
---|---|
1 | CACHE = query.data |
2 | EQUS = panasonic-erj stackpole-rmcf yageo-rc |
3 | |
4 | .PHONY: all |
5 | |
6 | all: db/digi-key.dsc db/digi-key.inv |
7 | |
8 | $(CACHE): db/digi-key.equ |
9 | awk '/^#END/ { exit } /^DIGI-KEY / { print $$2 }' $< | \ |
10 | perl ./dk-db.pl query \ |
11 | `[ -r $(CACHE) ] && echo '' -i $(CACHE)` >_$@ || \ |
12 | { rm -f $@ _$@; exit 1; } |
13 | mv _$@ $@ |
14 | |
15 | db/digi-key.equ: $(EQUS:%=db/%.equ) |
16 | cat $^ >$@ || { rm -rf $@; exit 1; } |
17 | |
18 | db/digi-key.dsc: $(CACHE) |
19 | perl ./dk-db.pl dsc $< >$@ || \ |
20 | { rm -f $@; exit 1; } |
21 | |
22 | db/digi-key.inv: $(CACHE) |
23 | perl ./dk-db.pl inv $< >$@ || \ |
24 | { rm -f $@; exit 1; } |
25 | |
26 | db/%.equ: %.catq |
27 | perl ./dk-catq.pl $< >$@ || { rm -rf $@; exit 1; } |
28 |
Branches:
master