move to preferred parts database
[hw/telemetrum] / Makefile
index e3afde2f66dc1c479d8c8f6d67529813c451e3c4..30650f3901221747981b5a25d102ff0e45813357 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,13 @@
-# intentionally want to rebuild drc and bom on every invocation
-all:   drc bom
+# name of project, also used for PCB file
+PROJECT=telemetrum
 
-drc:   telemetrum.sch
-       -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc
+# list of schematic files that make up this design
+SCHEMATICS=telemetrum.sch
 
-bom:   telemetrum.sch
-       gnetlist -g bom -o telemetrum.unsorted telemetrum.sch
-       head -n1 telemetrum.unsorted > telemetrum.bom
-       tail -n+2 telemetrum.unsorted | sort >> telemetrum.bom
-       rm -f telemetrum.unsorted
+# number of PCB layers
+LAYERS=4
 
-pcb:   telemetrum.sch project
-       gsch2pcb project
+# sides with silkscreen, can be none|top|bottom|both
+SILK=top
 
-zip:   telemetrum.plated-drill.cnc telemetrum.back.gbr telemetrum.front.gbr telemetrum.fab.gbr
-       zip telemetrum.zip telemetrum.plated-drill.cnc telemetrum.back.gbr telemetrum.front.gbr telemetrum.fab.gbr
-
-clean:
-       rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd
-       rm -f *.partslist *.new.pcb *.unsorted
+include ../altusmetrum/pcb.mk