Root/boom/dist/dk/Makefile

Source at commit bf0de45 created 13 years 5 months ago.
By Werner Almesberger, Added Yageo RC series chip resistors.
1CACHE = query.data
2EQUS = panasonic-erj stackpole-rmcf yageo-rc
3
4.PHONY: all
5
6all: 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
15db/digi-key.equ: $(EQUS:%=db/%.equ)
16            cat $^ >$@ || { rm -rf $@; exit 1; }
17
18db/digi-key.dsc: $(CACHE)
19            perl ./dk-db.pl dsc $< >$@ || \
20              { rm -f $@; exit 1; }
21
22db/digi-key.inv: $(CACHE)
23            perl ./dk-db.pl inv $< >$@ || \
24              { rm -f $@; exit 1; }
25
26db/%.equ: %.catq
27            perl ./dk-catq.pl $< >$@ || { rm -rf $@; exit 1; }
28

Archive Download this file

Branches:
master



interactive