-# 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
-
-megametrum.xy: megametrum.pcb
- pcb -x bom megametrum.pcb
-
-megametrum.bottom.gbr: megametrum.pcb
- pcb -x gerber megametrum.pcb
-
-zip: megametrum.bottom.gbr megametrum.bottommask.gbr megametrum.fab.gbr megametrum.top.gbr megametrum.topmask.gbr megametrum.toppaste.gbr megametrum.topsilk.gbr megametrum.group2.gbr megametrum.group3.gbr megametrum.plated-drill.cnc megametrum.xy Makefile # megametrum.xls
- zip megametrum.zip megametrum.*.gbr megametrum.*.cnc megametrum.xy # megametrum.xls
-
-oshpark: megametrum.bottom.gbr megametrum.bottommask.gbr megametrum.top.gbr megametrum.topmask.gbr megametrum.topsilk.gbr megametrum.plated-drill.cnc
- mv megametrum.bottom.gbr bottom\ layer.ger
- mv megametrum.bottommask.gbr bottom\ solder\ mask.ger
- mv megametrum.bottomsilk.gbr bottom\ silk\ screen.ger
- mv megametrum.outline.gbr board\ outline.ger
- mv megametrum.top.gbr top\ layer.ger
- mv megametrum.topmask.gbr top\ solder\ mask.ger
- mv megametrum.topsilk.gbr top\ silk\ screen.ger
- mv megametrum.plated-drill.cnc drills.xln
- mv megametrum.group2.gbr internal\ plane\ 1.ger
- mv megametrum.group3.gbr internal\ plane\ 2.ger
- zip megametrum-oshpark.zip *.ger *.xln
-
-stencil: megametrum.bottom.gbr megametrum.toppaste.gbr megametrum.outline.gbr
- zip megametrum-stencil.zip megametrum.toppaste.gbr megametrum.outline.gbr
+$(PROJECT).xy: $(PROJECT).pcb
+ pcb -x bom $(PROJECT).pcb
+
+$(PROJECT).bottom.gbr: $(PROJECT).pcb
+ pcb -x gerber $(PROJECT).pcb
+
+zip: $(PROJECT).bottom.gbr $(PROJECT).bottommask.gbr $(PROJECT).fab.gbr $(PROJECT).top.gbr $(PROJECT).topmask.gbr $(PROJECT).toppaste.gbr $(PROJECT).topsilk.gbr $(PROJECT).group2.gbr $(PROJECT).group3.gbr $(PROJECT).plated-drill.cnc $(PROJECT).xy Makefile # $(PROJECT).xls
+ zip $(PROJECT).zip $(PROJECT).*.gbr $(PROJECT).*.cnc $(PROJECT).xy # $(PROJECT).xls
+
+oshpark: $(PROJECT).bottom.gbr $(PROJECT).bottommask.gbr $(PROJECT).top.gbr $(PROJECT).topmask.gbr $(PROJECT).topsilk.gbr $(PROJECT).plated-drill.cnc
+ mv $(PROJECT).bottom.gbr bottom\ layer.ger
+ mv $(PROJECT).bottommask.gbr bottom\ solder\ mask.ger
+ mv $(PROJECT).bottomsilk.gbr bottom\ silk\ screen.ger
+ mv $(PROJECT).outline.gbr board\ outline.ger
+ mv $(PROJECT).top.gbr top\ layer.ger
+ mv $(PROJECT).topmask.gbr top\ solder\ mask.ger
+ mv $(PROJECT).topsilk.gbr top\ silk\ screen.ger
+ mv $(PROJECT).plated-drill.cnc drills.xln
+ mv $(PROJECT).group2.gbr internal\ plane\ 1.ger
+ mv $(PROJECT).group3.gbr internal\ plane\ 2.ger
+ zip $(PROJECT)-oshpark.zip *.ger *.xln
+
+stencil: $(PROJECT).bottom.gbr $(PROJECT).toppaste.gbr $(PROJECT).outline.gbr
+ zip $(PROJECT)-stencil.zip $(PROJECT).toppaste.gbr $(PROJECT).outline.gbr