move to preferred parts, start working on even smaller v0.3 design
[hw/telenano] / Makefile
index 98f15d210b0809aea5bd6fc25d7329ae7b32d884..a76dc6819fb9ae5370ddfa5ecc7c242c8d832318 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,51 +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=telenano
 
-drc:   telenano.sch Makefile
-       -gnetlist -g drc2 telenano.sch -o telenano.drc
+# list of schematic files that make up this design
+SCHEMATICS=telenano.sch
 
-partslist:     telenano.sch Makefile
-       gnetlist -g bom -o telenano.unsorted telenano.sch
-       head -n1 telenano.unsorted > partslist
-       tail -n+2 telenano.unsorted | sort >> partslist
-       rm -f telenano.unsorted
+# number of PCB layers
+LAYERS=2
 
-partslist.csv: telenano.sch Makefile
-       gnetlist -m scheme/gnet-partslistgag.scm -g partslistgag \
-               -o telenano.unsorted telenano.sch
-       head -n1 telenano.unsorted > partslist.csv
-       tail -n+2 telenano.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f telenano.unsorted
-
-pcb:   telenano.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
-
-telenano.xy:   telenano.pcb
-       pcb -x bom telenano.pcb
-
-telenano.back.gbr:     telenano.pcb
-       pcb -x gerber telenano.pcb
-
-zip:   telenano.back.gbr telenano.backmask.gbr telenano.fab.gbr telenano.front.gbr telenano.frontmask.gbr telenano.frontpaste.gbr telenano.frontsilk.gbr telenano.plated-drill.cnc telenano.xy  Makefile # telenano.xls
-       zip telenano.zip telenano.*.gbr telenano.*.cnc telenano.xy # telenano.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ telenano.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted telenano.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk