Move label for box part number onto the board
[hw/telefirefour] / Makefile
index 940f4c57c8a14d42e385dfc331943d73baa2a2f5..256ab2a9337162ad4d26cd76be08633dcd23744f 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=telefire
 
-drc:   telepad.sch Makefile
-       -gnetlist -g drc2 telepad.sch -o telepad.drc
+# list of schematic files that make up this design
+SCHEMATICS=telefire.sch
 
-partslist:     telepad.sch Makefile
-       gnetlist -g bom -o telepad.unsorted telepad.sch
-       head -n1 telepad.unsorted > partslist
-       tail -n+2 telepad.unsorted | sort >> partslist
-       rm -f telepad.unsorted
+# number of PCB layers
+LAYERS=4
 
-partslist.csv: telepad.sch Makefile
-       gnetlist -g partslist3 -o telepad.unsorted telepad.sch
-       head -n1 telepad.unsorted > partslist.csv
-       tail -n+2 telepad.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f telepad.unsorted
-
-pcb:   telepad.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
-
-telepad.xy:    telepad.pcb
-       pcb -x bom telepad.pcb
-
-telepad.back.gbr:      telepad.pcb
-       pcb -x gerber telepad.pcb
-
-zip:   telepad.back.gbr telepad.backmask.gbr telepad.fab.gbr telepad.front.gbr telepad.frontmask.gbr telepad.frontpaste.gbr telepad.frontsilk.gbr telepad.plated-drill.cnc telepad.xy  Makefile # telepad.xls
-       zip telepad.zip telepad.*.gbr telepad.*.cnc telepad.xy # telepad.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ telepad.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted telepad.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk