Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones |
| 2 | |
| 3 | NAME = ledm |
| 4 | |
| 5 | .PHONY: all sch brd front back clean |
| 6 | |
| 7 | all: |
| 8 | @echo "make what ? target: sch brd front back clean" |
| 9 | @exit 1 |
| 10 | |
| 11 | sch: |
| 12 | eeschema `pwd`/$(NAME).sch |
| 13 | |
| 14 | brd: |
| 15 | pcbnew `pwd`/$(NAME).brd |
| 16 | |
| 17 | front: $(NAME)-Front.ps |
| 18 | lpr $< |
| 19 | |
| 20 | back: $(NAME)-Back.ps |
| 21 | lpr $< |
| 22 | |
| 23 | %-Front.ps: %.brd |
| 24 | $(PLOT_BRD) -l Front --mirror $< |
| 25 | |
| 26 | %-Back.ps: %.brd |
| 27 | $(PLOT_BRD) -l Back $< |
| 28 | |
| 29 | # This is just a reminder. Since there's no --exclude-board-edges (yet ?), |
| 30 | # this doesn't work (yet ?). |
| 31 | # |
| 32 | #gerber: |
| 33 | # pcbnew --plot=gerber \ |
| 34 | # -l Front,Back,Mask_Front,PCB_Edges,SilkS_Front \ |
| 35 | # --fill-all-zones $(NAME).brd \ |
| 36 | # --exclude-board-edges |
| 37 | |
| 38 | clean: |
| 39 | rm -f $(NAME)-Front.ps $(NAME)-Back.ps |
| 40 | rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr |
| 41 |
Branches:
master
