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)
|
2010-10-25 04:40:55 +03:00
|
|
|
CHR=atrf.chr $(shell $(BOOM_CONFIG) chr)
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
|
2010-10-25 02:48:54 +03:00
|
|
|
.PHONY: all again spotless
|
2011-01-04 03:57:26 +02:00
|
|
|
.PRECIOUS: %.par %.lst
|
2010-09-12 06:17:18 +03:00
|
|
|
|
2011-01-17 17:25:43 +02:00
|
|
|
all: atusb.ord atben.ord cntr.ord
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
again:
|
|
|
|
$(MAKE) spotless
|
|
|
|
$(MAKE) all
|
|
|
|
|
2010-10-25 02:48:54 +03:00
|
|
|
%.ord: %.par $(INV) $(EQU)
|
|
|
|
$(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
|
2010-09-12 06:17:18 +03:00
|
|
|
|
2010-10-25 02:48:54 +03:00
|
|
|
%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
|
|
|
|
$(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-01-04 03:57:26 +02:00
|
|
|
%.lst: ../%/*.sch ../%/*.cmp
|
|
|
|
eeschema --bom `pwd`/../$*/$*.sch
|
|
|
|
mv ../$*/$*.lst .
|
|
|
|
|
2010-10-25 02:48:54 +03:00
|
|
|
show-%: %.ord $(DSC)
|
|
|
|
grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
|
2010-10-18 02:37:42 +03:00
|
|
|
sed 's/^... //'
|
2010-09-12 06:17:18 +03:00
|
|
|
|
|
|
|
spotless:
|
|
|
|
$(MAKE) -C dk spotless
|
2011-01-04 03:57:26 +02:00
|
|
|
rm -f atusb.lst atusb.par atusb.ord
|
2011-01-17 17:25:43 +02:00
|
|
|
rm -f atben.lst atben.par atben.ord
|
2011-01-04 03:57:26 +02:00
|
|
|
rm -f cntr.lst cntr.par cntr.ord
|