Replace BM70 module with RN4678 without fixing circuit
[hw/telebt] / Makefile
index 3784ff802d6af26625cd85492103d59d6d7588a8..b11d5cbe4110649bd9a2e72ba689b23228f48259 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=telebt
 
-drc:   telebt.sch Makefile
-       -gnetlist -g drc2 telebt.sch -o telebt.drc
+# list of schematic files that make up this design
+SCHEMATICS=telebt.sch
 
-partslist:     telebt.sch Makefile
-       gnetlist -g bom -o telebt.unsorted telebt.sch
-       head -n1 telebt.unsorted > partslist
-       tail -n+2 telebt.unsorted | sort >> partslist
-       rm -f telebt.unsorted
+# number of PCB layers
+LAYERS=4
 
-partslist.csv: telebt.sch Makefile
-       gnetlist -g partslistgag -o telebt.unsorted telebt.sch
-       head -n1 telebt.unsorted > partslist.csv
-       tail -n+2 telebt.unsorted | sort -t \, -k 8 >> partslist.csv
-       rm -f telebt.unsorted
-
-pcb:   telebt.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
-
-telebt.xy:     telebt.pcb
-       pcb -x bom telebt.pcb
-
-telebt.back.gbr:       telebt.pcb
-       pcb -x gerber telebt.pcb
-
-zip:   telebt.back.gbr telebt.backmask.gbr telebt.fab.gbr telebt.front.gbr telebt.frontmask.gbr telebt.backpaste.gbr telebt.frontsilk.gbr telebt.plated-drill.cnc telebt.xy  Makefile # telebt.xls
-       zip telebt.zip telebt.*.gbr telebt.*.cnc telebt.xy # telebt.xls
-
-clean:
-       rm -f *.bom *.drc *.log *~ telebt.ps *.gbr *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted telebt.xls
+# sides with silkscreen, can be none|top|bottom|both
+SILK=both
 
+include ../altusmetrum/pcb.mk