2010-10-16 14:18:51 +03:00
|
|
|
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
|
|
|
|
|
|
|
KITS = 1
|
|
|
|
|
2010-10-17 07:36:02 +03:00
|
|
|
DIST = dk
|
2010-10-17 21:10:55 +03:00
|
|
|
MANU = avx johanson murata panasonic stackpole tdk yageo
|
2010-10-17 07:36:02 +03:00
|
|
|
|
2010-10-17 05:59:00 +03:00
|
|
|
EQU = dist/all.equ
|
|
|
|
INV = dist/all.inv
|
|
|
|
DSC = dist/all.dsc
|
2010-10-17 07:36:02 +03:00
|
|
|
CHR = $(foreach m,$(MANU),manu/$(m)/$(m).chr)
|
2010-10-17 05:59:00 +03:00
|
|
|
|
|
|
|
DB = $(EQU) $(INV) $(DSC) $(CHR) \
|
2010-10-17 04:14:59 +03:00
|
|
|
$(DIST:%=dist/%/db/*.equ) \
|
|
|
|
$(DIST:%=dist/%/db/*.inv) \
|
|
|
|
$(DIST:%=dist/%/db/*.dsc)
|
|
|
|
|
|
|
|
|
2010-10-17 22:19:49 +03:00
|
|
|
.PHONY: all show again spotless tar count
|
2010-10-16 14:18:51 +03:00
|
|
|
|
|
|
|
all: show
|
|
|
|
|
|
|
|
show: test.ord $(DSC)
|
|
|
|
$(BOOM) prettyord -t $^
|
|
|
|
|
|
|
|
again:
|
|
|
|
$(MAKE) spotless
|
|
|
|
$(MAKE) all
|
|
|
|
|
|
|
|
test.ord: test.par $(INV) $(EQU)
|
|
|
|
$(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
test.par: $(EQU) $(INV) $(CHR) test.lst test.sub
|
|
|
|
$(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
test.lst: test.mbq
|
|
|
|
perl ./mbq2lst $^ >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
spotless:
|
|
|
|
rm -f test.lst test.par test.ord
|
2010-10-17 04:14:59 +03:00
|
|
|
|
|
|
|
tar:
|
|
|
|
tar cfj boom-db.tar.bz2 $(DB)
|
2010-10-17 22:19:49 +03:00
|
|
|
|
|
|
|
count:
|
|
|
|
perl ./count.pl $(CHR)
|