move Makefile and project config to best practices
authorBdale Garbee <bdale@gag.com>
Thu, 2 May 2013 16:58:22 +0000 (10:58 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 2 May 2013 16:58:22 +0000 (10:58 -0600)
Makefile
gafrc
project

index 5c28c4ec50d1f5af6e580c7676334faea701a8b4..198c648d3678f8a54109763a016513fc5beb644d 100644 (file)
--- 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 1e29942304e195af657c8c6cb5a4269d96e63224..9e10ee91551f9386b3fa0c84041ba680e2a34e39 100644 (file)
--- 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 56c13b10bef0d99b2505ac2d78f42c54bb551823..22c3094aa23657e2373a9e6c4d0528c3cdf2860c 100644 (file)
--- 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