Skip to content
Browse files

r4/Makefile: new targets "pdf" and "view" for overview PDF of schematics

  • Loading branch information...
1 parent 5483924 commit 7bd8e418b2b3a764d85f469dee1287170d6e14ef @wpwrak wpwrak committed
Showing with 20 additions and 3 deletions.
  1. +20 −3 r4/Makefile
View
23 r4/Makefile
@@ -3,10 +3,18 @@
NAME = m1
-SCH=$(shell pwd)/$(NAME).sch
-BRD=$(shell pwd)/$(NAME).brd
+SHEETS = m1 m1-POWER \
+ m1-FPGA_Dec m1-FPGA_BANK0 m1-FPGA_BANK1 m1-FPGA_BANK2 m1-FPGA_BANK3 \
+ m1-EXPANSION_RESET \
+ m1-DRAM m1-NOR_FLASH \
+ m1-AUDIO m1-DVI-I m1-VIDEO_IN m1-MISC_CONTROL m1-ETHERNET \
+ m1-USB_A-B m1-USB_C-D m1-USB_E-F m1-MISC
+PDF = m1r4.pdf
-.PHONY: all sch #brd
+SCH = $(shell pwd)/$(NAME).sch
+BRD = $(shell pwd)/$(NAME).brd
+
+.PHONY: all sch pdf view #brd
all:
@echo "make what ? target: sch"
@@ -15,5 +23,14 @@ all:
sch:
eeschema $(SCH)
+pdf:
+ eeschema --plot=ps --plot-sheetref m1.sch
+ for n in $(SHEETS:%=%.ps); do normalizeschps $$n _$$n; done
+ schps2pdf -o $(PDF) -t _m1- $(SHEETS:%=_%.ps)
+ rm -f $(SHEETS:%=%.ps) $(SHEETS:%=_%.ps)
+
+view: $(PDF)
+ $${DSV_PDFVIEWER:-xpdf} $^
+
brd:
pcbnew $(BRD)

0 comments on commit 7bd8e41

Please sign in to comment.
Something went wrong with that request. Please try again.