Date:2010-10-25 01:48:54 (9 years 1 month ago)
Author:Werner Almesberger
Commit:6e0abca1546a9254127e08f67c419b2f3d22cd41
Message: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.
Files: bom/Makefile (3 diffs)

Change Details

bom/Makefile
1111CHR=$(shell $(BOOM_CONFIG) chr)
1212
1313
14.PHONY: all again show-atusd spotless
14.PHONY: all again spotless
1515
1616all: atusd.ord
1717
...... 
1919        $(MAKE) spotless
2020        $(MAKE) all
2121
22atusd.ord: atusd.par $(INV) $(EQU)
23        $(BOOM) part2order $(KITS) $(INV) $(EQU) atusd.par >$@ || \
24          { rm -f $@; exit 1; }
22%.ord: %.par $(INV) $(EQU)
23        $(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
2524
26atusd.par: $(EQU) $(INV) $(CHR) ../atusd/atusd.lst atrf.sub
27        $(BOOM) bom2part $(EQU) $(INV) $(CHR) \
28          ../atusd/atusd.lst atrf.sub \
29          >$@ || { rm -f $@; exit 1; }
25vpath atusd.lst ../atusd
26
27%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
28        $(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
3029
3130dk/digi-key.inv:
3231        $(MAKE) -C dk digi-key.inv
...... 
3433dk/digi-key.dsc:
3534        $(MAKE) -C dk digi-key.dsc
3635
37show-atusd: atusd.ord $(DSC)
38        grep -vw ATRF atusd.ord | $(BOOM) prettyord -t - $(DSC) | \
36show-%: %.ord $(DSC)
37        grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
3938          sed 's/^... //'
4039
4140spotless:

Archive Download the corresponding diff file



interactive