2010-09-12 06:17:18 +03:00
|
|
|
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
|
|
|
|
2010-10-18 02:23:52 +03:00
|
|
|
BOOM2=../../eda-tools/boom
|
|
|
|
BOOM_CONFIG=$(BOOM2)/boom-config
|
|
|
|
|
2010-09-12 06:17:18 +03:00
|
|
|
KITS=1
|
|
|
|
|
2010-10-18 02:23:52 +03:00
|
|
|
EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
|
|
|
|
INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
|
|
|
|
DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
|
|
|
|
CHR=$(shell $(BOOM_CONFIG) chr)
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all again show-atusd spotless
|
|
|
|
|
|
|
|
all: atusd.ord
|
|
|
|
|
|
|
|
again:
|
|
|
|
$(MAKE) spotless
|
|
|
|
$(MAKE) all
|
|
|
|
|
|
|
|
atusd.ord: atusd.par $(INV) $(EQU)
|
|
|
|
$(BOOM) part2order $(KITS) $(INV) $(EQU) atusd.par >$@ || \
|
|
|
|
{ rm -rf $@; exit 1; }
|
|
|
|
|
|
|
|
atusd.par: $(EQU) $(INV) $(CHR) ../atusd/atusd.lst atrf.sub
|
|
|
|
$(BOOM) bom2part $(EQU) $(INV) $(CHR) \
|
|
|
|
../atusd/atusd.lst atrf.sub \
|
|
|
|
>$@ || { rm -rf $@; exit 1; }
|
|
|
|
|
|
|
|
dk/digi-key.inv:
|
|
|
|
$(MAKE) -C dk digi-key.inv
|
|
|
|
|
2010-09-12 21:19:38 +03:00
|
|
|
dk/digi-key.dsc:
|
|
|
|
$(MAKE) -C dk digi-key.dsc
|
|
|
|
|
2010-09-12 06:17:18 +03:00
|
|
|
SHOW_PRETTY = (echo '\#ORD'; grep '^$(2) ' $(1).ord ; ) | \
|
|
|
|
$(BOOM) prettyord - $(3) | \
|
2010-09-12 21:19:38 +03:00
|
|
|
sed 's/^... //' | \
|
|
|
|
awk '{ s += $$(NF); if ($$(NF)+0) n++; print; } \
|
|
|
|
END { print "$(4)", s, "items:", n }'
|
2010-09-12 06:17:18 +03:00
|
|
|
|
2010-10-18 02:23:52 +03:00
|
|
|
show-atusd: atusd.ord $(DSC)
|
|
|
|
$(call SHOW_PRETTY,atusd,DIGI-KEY,$(DSC),USD)
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
spotless:
|
|
|
|
$(MAKE) -C dk spotless
|
|
|
|
rm -f atusd.par atusd.ord
|