Update version to 3.0a
[hw/telemini] / Makefile
index 0b4bc2be0d348855be6b46c0bf1ea4b868516303..46ee9ba35db9d9421ca19d34a1878a5bc7bf3f3f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,44 +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=telemini
 
-drc:   telemini.sch Makefile
-       -gnetlist -g drc2 telemini.sch -o telemini.drc
+# list of schematic files that make up this design
+SCHEMATICS=telemini.sch
 
-partslist:     telemini.sch Makefile
-       gnetlist -g bom -o telemini.unsorted telemini.sch
-       head -n1 telemini.unsorted > partslist
-       tail -n+2 telemini.unsorted | sort >> partslist
-       rm -f telemini.unsorted
+# number of PCB layers
+LAYERS=4
 
-partslist.csv: telemini.sch Makefile
-       gnetlist -g partslist4 -o telemini.unsorted telemini.sch
-       head -n1 telemini.unsorted > partslist.csv
-       tail -n+2 telemini.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f telemini.unsorted
-
-pcb:   telemini.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
-
-zip:   telemini.back.gbr telemini.backmask.gbr telemini.fab.gbr telemini.front.gbr telemini.frontmask.gbr telemini.frontpaste.gbr telemini.frontsilk.gbr telemini.plated-drill.cnc telemini.xy  Makefile # telemini.xls
-       zip telemini.zip telemini.*.gbr telemini.*.cnc telemini.xy # telemini.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ telemini.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted telemini.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk