move to preferred parts database
[hw/telemetrum] / Makefile
index 60957a953bc715a973ef9388f2370f118d66a1ec..30650f3901221747981b5a25d102ff0e45813357 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=telemetrum
 
-drc:   telemetrum.sch Makefile
-       -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc
+# list of schematic files that make up this design
+SCHEMATICS=telemetrum.sch
 
-partslist:     telemetrum.sch Makefile
-       gnetlist -g bom -o telemetrum.unsorted telemetrum.sch
-       head -n1 telemetrum.unsorted > partslist
-       tail -n+2 telemetrum.unsorted | sort >> partslist
-       rm -f telemetrum.unsorted
+# number of PCB layers
+LAYERS=4
 
-partslist.csv: telemetrum.sch Makefile
-       gnetlist -m scheme/gnet-partslistgag.scm -g partslistgag \
-               -o telemetrum.unsorted telemetrum.sch
-       head -n1 telemetrum.unsorted > partslist.csv
-       tail -n+2 telemetrum.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f telemetrum.unsorted
-
-pcb:   telemetrum.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
-
-telemetrum.xy: telemetrum.pcb
-       pcb -x bom telemetrum.pcb
-
-telemetrum.bottom.gbr: telemetrum.pcb
-       pcb -x gerber telemetrum.pcb
-
-zip:   telemetrum.bottom.gbr telemetrum.bottommask.gbr telemetrum.fab.gbr telemetrum.top.gbr telemetrum.topmask.gbr telemetrum.toppaste.gbr telemetrum.topsilk.gbr telemetrum.group2.gbr telemetrum.group3.gbr telemetrum.plated-drill.cnc telemetrum.xy  Makefile # telemetrum.xls
-       zip telemetrum.zip telemetrum.*.gbr telemetrum.*.cnc telemetrum.xy # telemetrum.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted telemetrum.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=top
 
+include ../altusmetrum/pcb.mk