mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -2,14 +2,15 @@ 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)
|
||||
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
|
||||
|
||||
DB = $(CHR) \
|
||||
DIST = dk
|
||||
|
||||
DB = $(EQU) $(INV) $(DSC) $(CHR) \
|
||||
$(DIST:%=dist/%/db/*.equ) \
|
||||
$(DIST:%=dist/%/db/*.inv) \
|
||||
$(DIST:%=dist/%/db/*.dsc)
|
||||
@@ -40,4 +41,3 @@ spotless:
|
||||
|
||||
tar:
|
||||
tar cfj boom-db.tar.bz2 $(DB)
|
||||
|
||||
|
||||
20
boom/dist/Makefile
vendored
Normal file
20
boom/dist/Makefile
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
MASTER = all.equ all.dsc all.inv
|
||||
DIST = dk
|
||||
|
||||
.PHONY: all rebuild spotless
|
||||
|
||||
all: $(MASTER)
|
||||
|
||||
all.equ: Makefile
|
||||
for n in $(DIST); do echo "include $$n/db/all.equ"; done >$@
|
||||
|
||||
all.inv: Makefile
|
||||
for n in $(DIST); do echo "include $$n/db/all.inv"; done >$@
|
||||
|
||||
all.dsc: Makefile
|
||||
for n in $(DIST); do echo "include $$n/db/all.dsc"; done >$@
|
||||
|
||||
rebuild:
|
||||
rm -f $(MASTER)
|
||||
|
||||
spotless: rebuild
|
||||
@@ -1,4 +1,4 @@
|
||||
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
||||
|
||||
panasonic.chr: ../../dist/dk/db/all.equ panasonic.gen
|
||||
panasonic.chr: ../../dist/all.equ panasonic.gen
|
||||
$(BOOM) gen2chr PANASONIC $^ >$@ || { rm -rf $@; exit 1; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
||||
|
||||
stackpole.chr: ../../dist/dk/db/all.equ stackpole.gen
|
||||
stackpole.chr: ../../dist/all.equ stackpole.gen
|
||||
$(BOOM) gen2chr STACKPOLE $^ >$@ || { rm -rf $@; exit 1; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
||||
|
||||
yageo.chr: ../../dist/dk/db/all.equ yageo.gen
|
||||
yageo.chr: ../../dist/all.equ yageo.gen
|
||||
$(BOOM) gen2chr YAGEO $^ >$@ || { rm -rf $@; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user