X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=2f05fad67b10ce1e1bba176c055b57340887c57c;hb=eccb5d44c1f60ce62e23b45e934d1514842f37ff;hp=e511e6b6ee41c7c50014bf8e60418d774341633d;hpb=a7769e66e4f4e6324a0d91cc81dbcddef20bd85a;p=hw%2Feasymini diff --git a/Makefile b/Makefile index e511e6b..2f05fad 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ -PROJECT=easymetrum +PROJECT=easymini AM=../altusmetrum SCHEME=$(AM)/scheme 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 + cp easymini.bottom.gbr bottom\ layer.ger + cp easymini.bottommask.gbr bottom\ solder\ mask.ger + cp easymini.bottomsilk.gbr bottom\ silk\ screen.ger + cp easymini.outline.gbr board\ outline.ger + cp easymini.top.gbr top\ layer.ger + cp easymini.topmask.gbr top\ solder\ mask.ger + cp easymini.topsilk.gbr top\ silk\ screen.ger + cp easymini.plated-drill.cnc drills.xln + zip easymini-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