From 6698174351d64d4c5d1639824ee74c7682ae6e4c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 3 Jan 2011 22:57:26 -0300 Subject: [PATCH] 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) --- bom/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bom/Makefile b/bom/Makefile index 873b3e5..9c815bc 100644 --- a/bom/Makefile +++ b/bom/Makefile @@ -12,7 +12,7 @@ CHR=atrf.chr $(shell $(BOOM_CONFIG) chr) .PHONY: all again spotless -.PRECIOUS: %.par +.PRECIOUS: %.par %.lst all: atusb.ord atusd.ord cntr.ord @@ -23,10 +23,6 @@ again: %.ord: %.par $(INV) $(EQU) $(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; } -vpath atusb.lst ../atusb -vpath atusd.lst ../atusd -vpath cntr.lst ../cntr - %.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub $(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; } @@ -36,10 +32,16 @@ dk/digi-key.inv: dk/digi-key.dsc: $(MAKE) -C dk digi-key.dsc +%.lst: ../%/*.sch ../%/*.cmp + eeschema --bom `pwd`/../$*/$*.sch + mv ../$*/$*.lst . + show-%: %.ord $(DSC) grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \ sed 's/^... //' spotless: $(MAKE) -C dk spotless - rm -f atusb.par arusb.ord atusd.par atusd.ord cntr.par cntr.ord + rm -f atusb.lst atusb.par atusb.ord + rm -f atusd.lst atusd.par atusd.ord + rm -f cntr.lst cntr.par cntr.ord