mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 00:35:21 +02:00
57fc0bd84e
generalizations. - boom/Makefile, dist/dk/Makefile: the "files with everything" are now called dist/db/all.* instead of dist/db/digi-key.* - boom/manu/panasonic/Makefile, boom/manu/stackpole/Makefile, boom/manu/yageo/Makefile: changed digi-key.equ to all.equ - boom/Makefile: there can now be a list of distributors - boom/Makefile (tar): new target to generate a snapshot of the database - boom/Makefile (PHONY): added "spotless" - boom/dist/dk/Makefile: do not merge catalog listings so that we don't have to search a huge cache with O(n^2) - boom/dist/dk/Makefile (clean, rebuild, update, spotless): targets for different degrees of rebuilding - boom/dist/dk/dk-db.pl: added progress report output
44 lines
892 B
Makefile
44 lines
892 B
Makefile
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
|
|
|
KITS = 1
|
|
|
|
DIST = dk
|
|
EQU = $(DIST:%=dist/%/db/all.equ)
|
|
INV = $(DIST:%=dist/%/db/all.inv)
|
|
DSC = $(DIST:%=dist/%/db/all.dsc)
|
|
CHR = manu/panasonic/panasonic.chr manu/stackpole/stackpole.chr \
|
|
manu/yageo/yageo.chr
|
|
|
|
DB = $(CHR) \
|
|
$(DIST:%=dist/%/db/*.equ) \
|
|
$(DIST:%=dist/%/db/*.inv) \
|
|
$(DIST:%=dist/%/db/*.dsc)
|
|
|
|
|
|
.PHONY: all show again spotless tar
|
|
|
|
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
|
|
|
|
tar:
|
|
tar cfj boom-db.tar.bz2 $(DB)
|
|
|