1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 07:13:08 +02:00

Separate the test from the boom/ top-level directory.

- boom/test.mbq, boom/test.sub: moved to boom/test/
- boom/Makefile: moved all items related to running the test to
  test/Makefile
This commit is contained in:
Werner Almesberger 2010-10-17 19:44:29 -03:00
parent 6ce7ea1027
commit 61bfa83475
4 changed files with 35 additions and 21 deletions

View File

@ -1,7 +1,3 @@
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
KITS = 1
DIST = dk
MANU = avx johanson murata panasonic stackpole tdk yageo
@ -16,28 +12,12 @@ DB = $(EQU) $(INV) $(DSC) $(CHR) \
$(DIST:%=dist/%/db/*.dsc)
.PHONY: all show again spotless tar count
.PHONY: all spotless tar count
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)

34
boom/test/Makefile Normal file
View File

@ -0,0 +1,34 @@
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
KITS = 1
MANU = avx johanson murata panasonic stackpole tdk yageo
EQU = ../dist/all.equ
INV = ../dist/all.inv
DSC = ../dist/all.dsc
CHR = $(foreach m,$(MANU),../manu/$(m)/$(m).chr)
.PHONY: all show again spotless
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