mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 06:50:37 +02:00
bom/Makefile generalization
- 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.
This commit is contained in:
parent
2e742d9281
commit
6e0abca154
19
bom/Makefile
19
bom/Makefile
@ -11,7 +11,7 @@ DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
|
|||||||
CHR=$(shell $(BOOM_CONFIG) chr)
|
CHR=$(shell $(BOOM_CONFIG) chr)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all again show-atusd spotless
|
.PHONY: all again spotless
|
||||||
|
|
||||||
all: atusd.ord
|
all: atusd.ord
|
||||||
|
|
||||||
@ -19,14 +19,13 @@ again:
|
|||||||
$(MAKE) spotless
|
$(MAKE) spotless
|
||||||
$(MAKE) all
|
$(MAKE) all
|
||||||
|
|
||||||
atusd.ord: atusd.par $(INV) $(EQU)
|
%.ord: %.par $(INV) $(EQU)
|
||||||
$(BOOM) part2order $(KITS) $(INV) $(EQU) atusd.par >$@ || \
|
$(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
|
||||||
{ rm -f $@; exit 1; }
|
|
||||||
|
|
||||||
atusd.par: $(EQU) $(INV) $(CHR) ../atusd/atusd.lst atrf.sub
|
vpath atusd.lst ../atusd
|
||||||
$(BOOM) bom2part $(EQU) $(INV) $(CHR) \
|
|
||||||
../atusd/atusd.lst atrf.sub \
|
%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
|
||||||
>$@ || { rm -f $@; exit 1; }
|
$(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
dk/digi-key.inv:
|
dk/digi-key.inv:
|
||||||
$(MAKE) -C dk digi-key.inv
|
$(MAKE) -C dk digi-key.inv
|
||||||
@ -34,8 +33,8 @@ dk/digi-key.inv:
|
|||||||
dk/digi-key.dsc:
|
dk/digi-key.dsc:
|
||||||
$(MAKE) -C dk digi-key.dsc
|
$(MAKE) -C dk digi-key.dsc
|
||||||
|
|
||||||
show-atusd: atusd.ord $(DSC)
|
show-%: %.ord $(DSC)
|
||||||
grep -vw ATRF atusd.ord | $(BOOM) prettyord -t - $(DSC) | \
|
grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
|
||||||
sed 's/^... //'
|
sed 's/^... //'
|
||||||
|
|
||||||
spotless:
|
spotless:
|
||||||
|
Loading…
Reference in New Issue
Block a user