1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

include overview images in PCB and SMT fab packages

- atben/README-PCB, atusb/README-PCB: added overview images for PCB front
  and back
- atben/README-SMT, atusb/README-SMT: added overview image for PCB front
- atben/README-SMT, atusb/README-SMT: clarified that the Gerbers are in
  the PCB archive
- makefiles/Makefile.kicad (PCB_FILES): moved list of gerbers to
  $(GERBERS)
- makefiles/Makefile.kicad (gerber): generate Gerbers only if necessary
- makefiles/Makefile.kicad (overview, uoverview, clean): renamed
  overview.png to $(NAME)-overview.png and turned phony target into file
  target
- makefiles/Makefile.kicad ($(NAME)-front.png, $(NAME)-back.png, clean):
  added generation of front and back images
This commit is contained in:
Werner Almesberger
2011-03-23 01:57:55 -03:00
parent d53c2c2b72
commit 2e5329039c
5 changed files with 37 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ BRD=$(shell pwd)/$(NAME).brd
.PHONY: all gen generate sch brd xpdf front back clean
.PHONY: gerber gerbv fab
.PHONY: gerber gerbv fab fab-pcb fab-smt
all:
@echo "make what ? target: gen sch brd xpdf front back clean"
@@ -77,14 +77,18 @@ back: $(NAME)-Back.ps
# --- Industrial production ---------------------------------------------------
PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
$(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
$(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
$(NAME)-PCB_Edges.gbr
GERBERS = $(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
$(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
$(NAME)-PCB_Edges.gbr
SMT_FILES = README-SMT $(NAME)-bom.csv $(NAME)-pos.csv
PCB_FILES = README-PCB $(NAME)-front.png $(NAME)-back.png \
$(NAME)-PCB_Edges.dxf $(NAME).drl $(GERBERS)
gerber:
SMT_FILES = README-SMT $(NAME)-front.png $(NAME)-bom.csv $(NAME)-pos.csv
gerber: $(GERBERS)
$(GERBERS): $(NAME).brd Makefile
pcbnew --plot=gerber --origin=aux \
-l `pcbnew --list-layers $(BRD) | tr '\012' ,` \
--fill-all-zones --exclude-pcb-edge \
@@ -138,11 +142,18 @@ upload:
# --- Overview images ---------------------------------------------------------
overview: gerber
$(PRETTYGERBV) $(NAME) all overview.png
$(NAME)-front.png: gerber
$(PRETTYGERBV) $(NAME) front $(NAME)-front.png
uoverview: overview
qippl overview.png wpan/tmp/$(NAME)-$(VERSION)-overview.png
$(NAME)-back.png: gerber
$(PRETTYGERBV) $(NAME) back $(NAME)-back.png
$(NAME)-overview.png: gerber
$(PRETTYGERBV) $(NAME) all $(NAME)-overview.png
uoverview: $(NAME)-overview.png
qippl $(NAME)-overview.png \
wpan/tmp/$(NAME)-$(VERSION)-overview.png
# --- Cleanup -----------------------------------------------------------------
@@ -154,7 +165,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
rm -f $(NAME)-overview.png $(NAME)-front.png $(NAME)-back.png
rm -f $(NAME)Front.pos $(NAME)-pos.csv
spotless:: clean