Move label for box part number onto the board
[hw/telefirefour] / Makefile
index 374670e1c4b81c2020ae175572aeb2663ad75596..256ab2a9337162ad4d26cd76be08633dcd23744f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,52 +1,13 @@
+# name of project, also used for PCB file
 PROJECT=telefire
 
-# intentionally want to rebuild drc and bom on every invocation
-all:   drc partslist partslist.csv pcb
+# list of schematic files that make up this design
+SCHEMATICS=telefire.sch
 
-drc:   $(PROJECT).sch Makefile
-       -gnetlist -g drc2 $(PROJECT).sch -o $(PROJECT).drc
+# number of PCB layers
+LAYERS=4
 
-partslist:     $(PROJECT).sch Makefile
-       gnetlist -g bom -o $(PROJECT)-bom.unsorted $(PROJECT).sch
-       head -n1 $(PROJECT)-bom.unsorted > partslist
-       tail -n+2 $(PROJECT)-bom.unsorted | sort >> partslist
-#      rm -f $(PROJECT)-bom.unsorted
-
-partslist.csv: $(PROJECT).sch Makefile
-       gnetlist -g partslist3 -o $(PROJECT)-list.unsorted $(PROJECT).sch
-       head -n1 $(PROJECT)-list.unsorted > partslist.csv
-       tail -n+2 $(PROJECT)-list.unsorted | sort -t \, -k 8 >> partslist.csv
-#      rm -f $(PROJECT)-list.unsorted
-
-pcb:   $(PROJECT).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
-
-$(PROJECT).xy: $(PROJECT).pcb
-       pcb -x bom $(PROJECT).pcb
-
-$(PROJECT).back.gbr:   $(PROJECT).pcb
-       pcb -x gerber $(PROJECT).pcb
-
-zip:   $(PROJECT).back.gbr $(PROJECT).backmask.gbr $(PROJECT).fab.gbr $(PROJECT).front.gbr $(PROJECT).frontmask.gbr $(PROJECT).frontpaste.gbr $(PROJECT).frontsilk.gbr $(PROJECT).plated-drill.cnc $(PROJECT).xy  Makefile # $(PROJECT).xls
-       zip $(PROJECT).zip $(PROJECT).*.gbr $(PROJECT).*.cnc $(PROJECT).xy # $(PROJECT).xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted $(PROJECT).xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk