elimiate LAYERS and SILK from Makefile, they aren't needed any more
[hw/telelco] / Makefile
index 158ca08b5680ad212fcd752609be29d42ee17d7c..a740498b6c8ddba0250bb83ec20878f45099d21a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,60 +1,4 @@
 PROJECT=telelco
+SCHEMATICS=telelco.sch
 
-# intentionally want to rebuild drc and bom on every invocation
-all:   drc pcb partslist partslist.csv partslist.dk
-
-drc:   $(PROJECT).sch Makefile
-       -gnetlist -g drc2 $(PROJECT).sch -o $(PROJECT).drc
-
-partslist:     $(PROJECT).sch Makefile
-       gnetlist -g bom -o $(PROJECT)-bom.unsorted $(PROJECT).sch
-       (head -n1 $(PROJECT)-bom.unsorted && tail -n+2 $(PROJECT)-bom.unsorted | sort) | nickle ./retab > partslist
-       rm -f $(PROJECT)-bom.unsorted
-
-partslist.tab: $(PROJECT).sch Makefile
-       gnetlist -l gnet-partslist-keithp.scm -g partslist-keithp -o $(PROJECT)-list.unsorted $(PROJECT).sch
-       nickle ./retab < $(PROJECT)-list.unsorted > $@
-
-partslist.csv: $(PROJECT).sch Makefile gnet-partslist-csv.scm
-       gnetlist -l gnet-partslist-csv.scm -g partslist-csv -o $@ $(PROJECT).sch
-
-partslist.dk:  $(PROJECT).sch Makefile gnet-partslist-bom.scm
-       gnetlist -m ./gnet-partslist-bom.scm -g partslist-bom -Ovendor=digikey -o $@ $(PROJECT).sch
-
-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).gerb: $(PROJECT).pcb
-       rm -f *.gbr *.cnc
-       pcb -x gerber $(PROJECT).pcb
-       touch $@
-
-zip: $(PROJECT).zip
-
-$(PROJECT).zip: $(PROJECT).gerb $(PROJECT).xy
-       rm -f $(PROJECT).zip
-       zip $(PROJECT).zip *.gbr *.cnc *.xy
-
-clean:
-       rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr $(PROJECT).gerb *.cnc *bak* *- *.zip 
-       rm -f *.net *.xy *.cmd *.png partslist partslist.csv
-       rm -f *.partslist *.new.pcb *.unsorted $(PROJECT).xls
-
+include ../altusmetrum/pcb-rnd.mk