From fda569671240f992ad1151c7f5f6e8c414dc59d0 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 14 Apr 2004 18:02:26 +0000 Subject: [PATCH] make boms from partlists --- pcb/Makefile | 5 ++++- pic.make | 5 ++++- spice/Makefile | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pcb/Makefile b/pcb/Makefile index 93e62e7..9bb2dc3 100644 --- a/pcb/Makefile +++ b/pcb/Makefile @@ -13,10 +13,13 @@ LAYERS= $(LAYERS_L) $(LAYERS_E) default: ours-a.ps ours-al.ps parts.ps layers: $(LAYERS) -all: default layers +all: default layers circuit.bom o=>$@.new && mv -f $@.new $@ +%.bom: %.partlist ./farnell-find.pl + ./farnell-find.pl $< $o + %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o diff --git a/pic.make b/pic.make index 93e62e7..9bb2dc3 100644 --- a/pic.make +++ b/pic.make @@ -13,10 +13,13 @@ LAYERS= $(LAYERS_L) $(LAYERS_E) default: ours-a.ps ours-al.ps parts.ps layers: $(LAYERS) -all: default layers +all: default layers circuit.bom o=>$@.new && mv -f $@.new $@ +%.bom: %.partlist ./farnell-find.pl + ./farnell-find.pl $< $o + %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o diff --git a/spice/Makefile b/spice/Makefile index 93e62e7..9bb2dc3 100644 --- a/spice/Makefile +++ b/spice/Makefile @@ -13,10 +13,13 @@ LAYERS= $(LAYERS_L) $(LAYERS_E) default: ours-a.ps ours-al.ps parts.ps layers: $(LAYERS) -all: default layers +all: default layers circuit.bom o=>$@.new && mv -f $@.new $@ +%.bom: %.partlist ./farnell-find.pl + ./farnell-find.pl $< $o + %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o -- 2.30.2