From: ian Date: Wed, 14 Apr 2004 18:02:26 +0000 (+0000) Subject: make boms from partlists X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=fda569671240f992ad1151c7f5f6e8c414dc59d0;p=trains.git make boms from partlists --- 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