add oshpark target, put 'make all' back to keithp's preferred mode
authorBdale Garbee <bdale@gag.com>
Wed, 20 Mar 2013 22:53:53 +0000 (16:53 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 20 Mar 2013 22:53:53 +0000 (16:53 -0600)
Makefile

index e511e6b6ee41c7c50014bf8e60418d774341633d..abba6458f084fabb7be7e5396fbfdf104e6d905d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ NICKLE=$(AM)/nickle
 RETAB=nickle $(NICKLE)/retab
 
 # intentionally want to rebuild drc and bom on every invocation
-all:   drc pcb partslist partslist.csv partslist.dk muffin-5267.pdf zip
+all:   drc pcb partslist partslist.csv partslist.dk muffin-5267.pdf zip
 
 drc: $(PROJECT).sch
        gnetlist -L $(SCHEME) -g drc2 $(PROJECT).sch -o $(PROJECT).drc
@@ -30,21 +30,6 @@ muffin-5267.pdf: partslist.csv $(AM)/glabels/muffin-5267.glabels
 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
 
@@ -53,7 +38,7 @@ $(PROJECT).gerb: $(PROJECT).pcb
        pcb -x gerber $(PROJECT).pcb
        touch $@
 
-zip: $(PROJECT).zip $(PROJECT)-stencil.zip
+zip: $(PROJECT).zip $(PROJECT)-stencil.zip $(PROJECT)-oshpark.zip
 
 $(PROJECT).zip: $(PROJECT).gerb $(PROJECT).xy
        rm -f $@
@@ -63,6 +48,17 @@ $(PROJECT)-stencil.zip:      $(PROJECT).gerb
        rm -f $@
        zip $@ $(PROJECT).toppaste.gbr $(PROJECT).outline.gbr
 
+$(PROJECT)-oshpark.zip: $(PROJECT).gerb
+       mv easymetrum.bottom.gbr bottom\ layer.ger
+       mv easymetrum.bottommask.gbr bottom\ solder\ mask.ger
+       mv easymetrum.bottomsilk.gbr bottom\ silk\ screen.ger
+       mv easymetrum.outline.gbr board\ outline.ger
+       mv easymetrum.top.gbr top\ layer.ger
+       mv easymetrum.topmask.gbr top\ solder\ mask.ger
+       mv easymetrum.topsilk.gbr top\ silk\ screen.ger
+       mv easymetrum.plated-drill.cnc drills.xln
+       zip easymetrum-oshpark.zip *.ger *.xln
+
 clean:
        rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr $(PROJECT).gerb *.cnc *bak* *- *.zip 
        rm -f *.net *.xy *.cmd *.png partslist partslist.csv partslist.dk partslist.mouser muffin-5267.pdf