Root/bom/dk/Makefile

Source at commit 3f28b92c4fff20effa67c75c9fa01cb494ad8083 created 13 years 4 months ago.
By Werner Almesberger, CAM process for the antenna test boards.
1CACHE=query.data
2
3.PHONY: update regen regenerate clean spotless
4
5all: digi-key.dsc digi-key.inv
6
7$(CACHE): digi-key.equ
8        awk '/^#END/ { exit } /^DIGI-KEY / { print $$2 }' \
9          digi-key.equ | \
10          perl ./dk-db.pl query \
11          `[ -r $(CACHE) ] && echo '' -i $(CACHE)` >_$@ || \
12          { rm -f $@ _$@; exit 1; }
13        mv _$@ $@
14
15digi-key.dsc: $(CACHE)
16        perl ./dk-db.pl dsc $(CACHE) >$@ || { rm -f $@; exit 1; }
17    
18digi-key.inv: $(CACHE)
19        perl ./dk-db.pl inv $(CACHE) >$@ || { rm -f $@; exit 1; }
20
21update:
22        $(MAKE) clean all
23
24regen regenerate:
25        rm -f digi-key.dsc digi-key.inv
26        $(MAKE) all
27
28clean:
29        rm -f $(CACHE) _$(CACHE)
30
31#
32# we don't do a "make clean" on "make spotless", so that things like "make
33# optimist" don't erase the cache.
34#
35
36spotless:
37        rm -f digi-key.dsc digi-key.inv _$(CACHE)
38

Archive Download this file



interactive