hide refdes associated with (new) servos connector
[hw/telemega] / Makefile
index adf6ff82f9d990a6e02569d85c32064480e33352..99e4a988d382ad6acaafc83bd3f86679235e7213 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,50 +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:   megametrum.sch Makefile
-       -gnetlist -g drc2 megametrum.sch -o megametrum.drc
+# list of schematic files that make up this design
+SCHEMATICS=telemega.sch
 
-partslist:     megametrum.sch Makefile
-       gnetlist -g bom -o megametrum.unsorted megametrum.sch
-       head -n1 megametrum.unsorted > partslist
-       tail -n+2 megametrum.unsorted | sort >> partslist
-       rm -f megametrum.unsorted
+# number of PCB layers
+LAYERS=4
 
-partslist.csv: megametrum.sch Makefile
-       gnetlist -g partslistgag -o megametrum.unsorted megametrum.sch
-       head -n1 megametrum.unsorted > partslist.csv
-       tail -n+2 megametrum.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f megametrum.unsorted
-
-pcb:   megametrum.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
-
-megametrum.xy: megametrum.pcb
-       pcb -x bom megametrum.pcb
-
-megametrum.back.gbr:   megametrum.pcb
-       pcb -x gerber megametrum.pcb
-
-zip:   megametrum.back.gbr megametrum.backmask.gbr megametrum.fab.gbr megametrum.front.gbr megametrum.frontmask.gbr megametrum.frontpaste.gbr megametrum.frontsilk.gbr megametrum.group2.gbr megametrum.group3.gbr megametrum.plated-drill.cnc megametrum.xy  Makefile # megametrum.xls
-       zip megametrum.zip megametrum.*.gbr megametrum.*.cnc megametrum.xy # megametrum.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ megametrum.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted megametrum.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk