1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 01:32:48 +02:00
eda-tools/boom/Makefile
Werner Almesberger 83d4e709af Removed knowledge about distributors from manufacturers and (partially) from
the top-level makefile.

- boom/dist/Makefile: generate all.{equ,inv,dsc} for all distributors in
  dist/
- boom/Makefile (EQU, INV, DSC): use dist/all.* instead of dist/*/db/all.*
- boom/Makefile (tar): also collect $(EQU), $(INV), and $(DSC)
- boom/manu/panasonic/Makefile, boom/manu/stackpole/Makefile,
  boom/manu/yageo/Makefile: include dist/all.equ instead of
  dist/dk/db/all.equ
2010-10-16 23:59:00 -03:00

44 lines
866 B
Makefile

BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
KITS = 1
EQU = dist/all.equ
INV = dist/all.inv
DSC = dist/all.dsc
CHR = manu/panasonic/panasonic.chr manu/stackpole/stackpole.chr \
manu/yageo/yageo.chr
DIST = dk
DB = $(EQU) $(INV) $(DSC) $(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)