From 0960497602c74b9c882c2fea81347c102c3f3959 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 22 Mar 2011 10:29:45 -0300 Subject: [PATCH] atben, atusb: added Makefile targets to generate "pretty" overview images - Makefile (overview): run prettygerbv to generate an overview image - Makefile (uoverview): copy the overview image to downloads.qi-hardware.com and version it - Makefile (clean): remove overview.png --- atben/Makefile | 10 ++++++++++ atusb/Makefile | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/atben/Makefile b/atben/Makefile index e89a93e..8a9bb64 100644 --- a/atben/Makefile +++ b/atben/Makefile @@ -1,6 +1,7 @@ PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones CPTX = ../../eda-tools/mlztx/cptx GMERGE = ../../eda-tools/gerber/gmerge +PRETTYGERBV=../../eda-tools/gerber/prettygerbv NAME = atben VERSION = 110314 @@ -77,6 +78,14 @@ upload: qippl fab/$(NAME)-pcb-$(VERSION).tar.gz \ fab/$(NAME)-pcb-$(VERSION).zip wpan/fab +# --- Overviews images -------------------------------------------------------- + +overview: gerber + $(PRETTYGERBV) $(NAME) all overview.png + +uoverview: overview + qippl overview.png wpan/tmp/$(NAME)-$(VERSION)-overview.png + # --- DIY production (toner transfer) ----------------------------------------- # @@ -106,6 +115,7 @@ clean: rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp rm -f $(NAME)-Comments.gbr $(NAME)-Drawings.gbr + rm -f overview.png spotless: clean rm -f '$$'savepcb.000 '$$'savepcb.brd diff --git a/atusb/Makefile b/atusb/Makefile index 9f06f59..e3716df 100644 --- a/atusb/Makefile +++ b/atusb/Makefile @@ -1,6 +1,7 @@ PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones CPTX = ../../eda-tools/mlztx/cptx GMERGE = ../../eda-tools/gerber/gmerge +PRETTYGERBV=../../eda-tools/gerber/prettygerbv NAME = atusb VERSION = 110314 @@ -94,6 +95,14 @@ upload: qippl fab/$(NAME)-pcb-$(VERSION).tar.gz \ fab/$(NAME)-pcb-$(VERSION).zip wpan/fab +# --- Overview images --------------------------------------------------------- + +overview: gerber + $(PRETTYGERBV) $(NAME) all overview.png + +uoverview: overview + qippl overview.png wpan/tmp/$(NAME)-$(VERSION)-overview.png + # --- Cleanup ----------------------------------------------------------------- clean: @@ -104,6 +113,7 @@ clean: rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp rm -f $(NAME)-Comments.gbr $(NAME)-Drawings.gbr + rm -f overview.png spotless: clean rm -f '$$'savepcb.brd