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