X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=99e4a988d382ad6acaafc83bd3f86679235e7213;hb=84f6fdcc338cf5f614ef7a1da7648633d1f09d73;hp=b8fc1ac73d987121ea31adc5633871b41b3b3f62;hpb=a4cd2624abe07bf3bee5e677fc1a5e05b8f211f2;p=hw%2Ftelemega diff --git a/Makefile b/Makefile index b8fc1ac..99e4a98 100644 --- a/Makefile +++ b/Makefile @@ -1,67 +1,13 @@ -# intentionally want to rebuild drc and bom on every invocation -all: drc partslist partslist.csv pcb +# name of project, also used for PCB file +PROJECT=telemega -drc: telemega.sch Makefile - -gnetlist -g drc2 telemega.sch -o telemega.drc +# list of schematic files that make up this design +SCHEMATICS=telemega.sch -partslist: telemega.sch Makefile - gnetlist -g bom -o telemega.unsorted telemega.sch - head -n1 telemega.unsorted > partslist - tail -n+2 telemega.unsorted | sort >> partslist - rm -f telemega.unsorted +# number of PCB layers +LAYERS=4 -partslist.csv: telemega.sch Makefile - gnetlist -L ../altusmetrum/scheme -g partslistgag \ - -o telemega.unsorted telemega.sch - head -n1 telemega.unsorted > partslist.csv - tail -n+2 telemega.unsorted | sort -t \, -k 8 >> partslist.csv - rm -f telemega.unsorted - -pcb: telemega.sch project Makefile - gsch2pcb project - -# note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this -# might be a really good idea for publishing designs to the web that others -# might review? Like this example from DJ: -# -#web : -# for i in channel.sch ethernet.sch power.sch mcu.sch; do \ -# cp $$i tmp.sch ; \ -# gschlas -e tmp.sch ; \ -# mv tmp.sch ${WEB}/$$i; \ -# done - -# this shoves local work out to the git.gag.com repository -push: - git push --mirror - -telemega.xy: telemega.pcb - pcb -x bom telemega.pcb - -telemega.bottom.gbr: telemega.pcb - pcb -x gerber telemega.pcb - -zip: telemega.bottom.gbr telemega.bottommask.gbr telemega.fab.gbr telemega.top.gbr telemega.topmask.gbr telemega.toppaste.gbr telemega.topsilk.gbr telemega.group2.gbr telemega.group3.gbr telemega.plated-drill.cnc telemega.xy Makefile # telemega.xls - zip telemega.zip telemega.*.gbr telemega.*.cnc telemega.xy # telemega.xls - -oshpark: telemega.bottom.gbr telemega.bottommask.gbr telemega.top.gbr telemega.topmask.gbr telemega.topsilk.gbr telemega.plated-drill.cnc - mv telemega.bottom.gbr bottom\ layer.ger - mv telemega.bottommask.gbr bottom\ solder\ mask.ger - mv telemega.bottomsilk.gbr bottom\ silk\ screen.ger - mv telemega.outline.gbr board\ outline.ger - mv telemega.top.gbr top\ layer.ger - mv telemega.topmask.gbr top\ solder\ mask.ger - mv telemega.topsilk.gbr top\ silk\ screen.ger - mv telemega.plated-drill.cnc drills.xln - mv telemega.group2.gbr internal\ plane\ 1.ger - mv telemega.group3.gbr internal\ plane\ 2.ger - zip telemega-oshpark.zip *.ger *.xln - -stencil: telemega.bottom.gbr telemega.toppaste.gbr telemega.outline.gbr - zip telemega-stencil.zip telemega.toppaste.gbr telemega.outline.gbr - -clean: - rm -f *.bom *.drc *.log *~ telemega.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln - rm -f *.partslist *.new.pcb *.unsorted telemega.xls +# sides with silkscreen, can be none|top|bottom|both +SILK=both +include ../altusmetrum/pcb.mk