From 2388e6663782e72ae48ad4361ab55e014445b6e1 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 4 Dec 2008 18:29:00 -0700 Subject: [PATCH] sort reference designators in bill of materials --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 523442a..ef83c11 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,14 @@ +# intentionally want to rebuild drc and bom on every invocation all: drc bom drc: beacon.sch -gnetlist -g drc2 beacon.sch -o beacon.drc bom: beacon.sch - gnetlist -g bom -o beacon.bom beacon.sch + gnetlist -g bom -o beacon.unsorted beacon.sch + head -n1 beacon.unsorted > beacon.bom + tail -n+2 beacon.unsorted | sort >> beacon.bom + rm -f beacon.unsorted pcb: beacon.sch project gsch2pcb project @@ -15,4 +19,4 @@ zip: beacon.plated-drill.cnc beacon.back.gbr beacon.front.gbr beacon.fab.gbr clean: rm -f *.bom *.drc *.log *~ beacon.ps *.gbr *.cnc *bak* *- *.zip rm -f *.net *.xy *.cmd - rm -f *.partslist *.new.pcb + rm -f *.partslist *.new.pcb *.unsorted -- 2.30.2