chiark / gitweb /
make boms from partlists
authorian <ian>
Wed, 14 Apr 2004 18:02:26 +0000 (18:02 +0000)
committerian <ian>
Wed, 14 Apr 2004 18:02:26 +0000 (18:02 +0000)
pcb/Makefile
pic.make
spice/Makefile

index 93e62e76bb4b601c9419b198735029acde220196..9bb2dc3e0f85cde6361b9124c591ecb56c914a10 100644 (file)
@@ -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
 
index 93e62e76bb4b601c9419b198735029acde220196..9bb2dc3e0f85cde6361b9124c591ecb56c914a10 100644 (file)
--- 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
 
index 93e62e76bb4b601c9419b198735029acde220196..9bb2dc3e0f85cde6361b9124c591ecb56c914a10 100644 (file)
@@ -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