Date:2011-01-04 02:57:26 (8 years 6 months ago)
Author:Werner Almesberger
Commit:6698174351d64d4c5d1639824ee74c7682ae6e4c
Message:bom/Makefile: invoke eeschema to generate the BOM, some cleanup

- Makefile: added %.lst target to generate the BOM with eeschema --bom
- Makefile: removed vpaths
- Makefile (spotless): remove .lst files as well
- Makefile (spotless): corrected typo arusb.ord (should be atusb.ord)
Files: bom/Makefile (3 diffs)

Change Details

bom/Makefile
1212
1313
1414.PHONY: all again spotless
15.PRECIOUS: %.par
15.PRECIOUS: %.par %.lst
1616
1717all: atusb.ord atusd.ord cntr.ord
1818
...... 
2323%.ord: %.par $(INV) $(EQU)
2424        $(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
2525
26vpath atusb.lst ../atusb
27vpath atusd.lst ../atusd
28vpath cntr.lst ../cntr
29
3026%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
3127        $(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
3228
...... 
3632dk/digi-key.dsc:
3733        $(MAKE) -C dk digi-key.dsc
3834
35%.lst: ../%/*.sch ../%/*.cmp
36        eeschema --bom `pwd`/../$*/$*.sch
37        mv ../$*/$*.lst .
38
3939show-%: %.ord $(DSC)
4040        grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
4141          sed 's/^... //'
4242
4343spotless:
4444        $(MAKE) -C dk spotless
45        rm -f atusb.par arusb.ord atusd.par atusd.ord cntr.par cntr.ord
45        rm -f atusb.lst atusb.par atusb.ord
46        rm -f atusd.lst atusd.par atusd.ord
47        rm -f cntr.lst cntr.par cntr.ord

Archive Download the corresponding diff file



interactive