hide refdes associated with (new) servos connector
[hw/telemega] / Makefile
index 83070e1c451be45d8d90c027d8a9f9c257a69af8..99e4a988d382ad6acaafc83bd3f86679235e7213 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,75 +1,13 @@
-AM=../altusmetrum
-SCHEME=$(AM)/scheme
+# name of project, also used for PCB file
+PROJECT=telemega
 
-# intentionally want to rebuild drc and bom on every invocation
-all:   drc partslist partslist.csv pcb
+# list of schematic files that make up this design
+SCHEMATICS=telemega.sch
 
-drc:   telemega.sch Makefile
-       -gnetlist -g drc2 telemega.sch -o telemega.drc
+# number of PCB layers
+LAYERS=4
 
-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
-
-partslist.csv: telemega.sch Makefile
-       gnetlist -L $(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 muffin-5267.pdf
-
-muffins: partslist.csv $(AM)/glabels/muffin-short-5267.glabels
-       glabels-3-batch $(AM)/glabels/muffin-short-5267.glabels \
-               -i partslist.csv -o muffin-5267.ps >/dev/null && \
-               ps2pdf muffin-5267.ps && rm muffin-5267.ps
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk