mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 18:57:11 +02:00
6e0abca154
- bom/Makefile: simplify atusd.ord and atusd.par rule by using $^ - bom/Makefile: use pattern rule for atusd.ord and atusd.par - bom/Makefile: since we can't have more than one percent sign on a dependency, add vpath - bom/Makefile: use pattern rule for show-atusd. We also have to remove show-atusd from .PHONY because implicit rules are not applied to phony targets.
43 lines
894 B
Makefile
43 lines
894 B
Makefile
BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
|
|
|
|
BOOM2=../../eda-tools/boom
|
|
BOOM_CONFIG=$(BOOM2)/boom-config
|
|
|
|
KITS=1
|
|
|
|
EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
|
|
INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
|
|
DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
|
|
CHR=$(shell $(BOOM_CONFIG) chr)
|
|
|
|
|
|
.PHONY: all again spotless
|
|
|
|
all: atusd.ord
|
|
|
|
again:
|
|
$(MAKE) spotless
|
|
$(MAKE) all
|
|
|
|
%.ord: %.par $(INV) $(EQU)
|
|
$(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
|
|
|
|
vpath atusd.lst ../atusd
|
|
|
|
%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
|
|
$(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
|
|
|
|
dk/digi-key.inv:
|
|
$(MAKE) -C dk digi-key.inv
|
|
|
|
dk/digi-key.dsc:
|
|
$(MAKE) -C dk digi-key.dsc
|
|
|
|
show-%: %.ord $(DSC)
|
|
grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
|
|
sed 's/^... //'
|
|
|
|
spotless:
|
|
$(MAKE) -C dk spotless
|
|
rm -f atusd.par atusd.ord
|