+# 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
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