From 52c62f64b036f53ddf641825ceee741e0f4b11ee Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 2 May 2013 10:58:22 -0600 Subject: [PATCH] move Makefile and project config to best practices --- Makefile | 30 +++++++++++++++++++++++++++--- gafrc | 2 +- project | 3 +-- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5c28c4e..198c648 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +AM=../altusmetrum +SCHEME=$(AM)/scheme + # intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb @@ -11,7 +14,7 @@ partslist: telemetrum.sch Makefile rm -f telemetrum.unsorted partslist.csv: telemetrum.sch Makefile - gnetlist -L ../altusmetrum/scheme -g partslistgag \ + gnetlist -L $(SCHEME) -g partslistgag \ -o telemetrum.unsorted telemetrum.sch head -n1 telemetrum.unsorted > partslist.csv tail -n+2 telemetrum.unsorted | sort -t \, -k 8 >> partslist.csv @@ -44,8 +47,29 @@ telemetrum.bottom.gbr: telemetrum.pcb zip: telemetrum.bottom.gbr telemetrum.bottommask.gbr telemetrum.fab.gbr telemetrum.top.gbr telemetrum.topmask.gbr telemetrum.toppaste.gbr telemetrum.topsilk.gbr telemetrum.group2.gbr telemetrum.group3.gbr telemetrum.plated-drill.cnc telemetrum.xy Makefile # telemetrum.xls zip telemetrum.zip telemetrum.*.gbr telemetrum.*.cnc telemetrum.xy # telemetrum.xls +oshpark: telemetrum.bottom.gbr telemetrum.bottommask.gbr telemetrum.top.gbr telemetrum.topmask.gbr telemetrum.topsilk.gbr telemetrum.plated-drill.cnc + mv telemetrum.bottom.gbr bottom\ layer.ger + mv telemetrum.bottommask.gbr bottom\ solder\ mask.ger + mv telemetrum.bottomsilk.gbr bottom\ silk\ screen.ger + mv telemetrum.outline.gbr board\ outline.ger + mv telemetrum.top.gbr top\ layer.ger + mv telemetrum.topmask.gbr top\ solder\ mask.ger + mv telemetrum.topsilk.gbr top\ silk\ screen.ger + mv telemetrum.plated-drill.cnc drills.xln + mv telemetrum.group2.gbr internal\ plane\ 1.ger + mv telemetrum.group3.gbr internal\ plane\ 2.ger + zip telemetrum-oshpark.zip *.ger *.xln + +stencil: telemetrum.bottom.gbr telemetrum.toppaste.gbr telemetrum.outline.gbr + zip telemetrum-stencil.zip telemetrum.toppaste.gbr telemetrum.outline.gbr + clean: rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted telemetrum.xls + rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln + rm -f *.partslist *.new.pcb *.unsorted telemetrum.xls muffin-5267.pdf + +muffins: partslist.csv $(AM)/glabels/muffin-short-5267.glabels + glabels-3-batch $(AM)/glabels/muffin-short-5267.glabels \ + -i partslist.csv -o muffin-5267.ps >/dev/null && \ + ps2pdf muffin-5267.ps && rm muffin-5267.ps diff --git a/gafrc b/gafrc index 1e29942..9e10ee9 100644 --- a/gafrc +++ b/gafrc @@ -1,3 +1,3 @@ ; empty the library path and populate it with only our own symbols (reset-component-library) -(component-library "./symbols") +(load "../altusmetrum/gafrc") diff --git a/project b/project index 56c13b1..22c3094 100644 --- a/project +++ b/project @@ -6,8 +6,7 @@ schematics telemetrum.sch # are derived from the first listed schematic... output-name telemetrum -elements-dir ../bdale/pkg -elements-dir /usr/share/pcb +elements-dir ../altusmetrum/packages # stick to newlib elements, don't use the older/odder m4 stuff skip-m4 -- 2.39.5