1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-10-04 18:50:41 +03:00
ben-blinkenlights/uart/bom/dk/Makefile
Werner Almesberger 5d7c78edac uart: added more values to schematics, added files for BOM processing
- uart.sch (D1): added value LTST-C190KRKT
- uart.sch (K1): footprint was incorrectly placed in value field
- uart.sch (K1): added value 3M 961103-5604-AR
- uart/bom: added BOM infrastructure and definitions
2011-02-01 23:43:05 -03:00

38 lines
793 B
Makefile

CACHE=query.data
.PHONY: update regen regenerate clean spotless
all: digi-key.dsc digi-key.inv
$(CACHE): digi-key.equ
awk '/^#END/ { exit } /^DIGI-KEY / { print $$2 }' \
digi-key.equ | \
perl ./dk-db.pl query \
`[ -r $(CACHE) ] && echo '' -i $(CACHE)` >_$@ || \
{ rm -f $@ _$@; exit 1; }
mv _$@ $@
digi-key.dsc: $(CACHE)
perl ./dk-db.pl dsc $(CACHE) >$@ || { rm -f $@; exit 1; }
digi-key.inv: $(CACHE)
perl ./dk-db.pl inv $(CACHE) >$@ || { rm -f $@; exit 1; }
update:
$(MAKE) clean all
regen regenerate:
rm -f digi-key.dsc digi-key.inv
$(MAKE) all
clean:
rm -f $(CACHE) _$(CACHE)
#
# we don't do a "make clean" on "make spotless", so that things like "make
# optimist" don't erase the cache.
#
spotless:
rm -f digi-key.dsc digi-key.inv _$(CACHE)