X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=4f855c110aa8208939ab27e7d62df5f9bd9c5841;hb=HEAD;hp=9036f5444dbdf1aec399f8971070d0950fb2f44f;hpb=6a4b9db2684495436898825e667e810eaf61e96f;p=hw%2Fteleterra diff --git a/Makefile b/Makefile index 9036f54..e648ff2 100644 --- a/Makefile +++ b/Makefile @@ -1,46 +1,13 @@ -# intentionally want to rebuild drc and bom on every invocation -all: hw sw +# name of project, also used for PCB file +PROJECT=teleterra -hw: drc partslist +# list of schematic files that make up this design +SCHEMATICS=teleterra.sch -sw: teleterra.hex +# number of PCB layers +LAYERS=4 -teleterra.hex: teleterra.asm - gpasm teleterra.asm - -drc: teleterra.sch - -gnetlist -g drc2 teleterra.sch -o teleterra.drc - -partslist: teleterra.sch - gnetlist -g bom -o teleterra.unsorted teleterra.sch - head -n1 teleterra.unsorted > partslist - tail -n+2 teleterra.unsorted | sort >> partslist - rm -f teleterra.unsorted - -pcb: teleterra.sch project - 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 - -zip: teleterra.back.gbr teleterra.backmask.gbr teleterra.fab.gbr teleterra.front.gbr teleterra.frontmask.gbr teleterra.frontpaste.gbr teleterra.frontsilk.gbr teleterra.group2.gbr teleterra.group3.gbr teleterra.plated-drill.cnc - zip teleterra.zip *.gbr *.cnc - -clean: - rm -f *.bom *.drc *.log *~ teleterra.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist - rm -f *.partslist *.new.pcb *.unsorted - rm -f *.hex *.cod *.lst +# sides with silkscreen, can be none|top|bottom|both +SILK=both +include ../altusmetrum/pcb-rnd.mk