mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-21 09:33:47 +08:00
Auto-generate architecture pdf.
This commit is contained in:
@@ -17,14 +17,22 @@ FIGS := \
|
||||
phases.fig \
|
||||
statetrans.fig
|
||||
|
||||
PDFS = $(FIGS:.fig=.pdf)
|
||||
FIGPDFS = $(FIGS:.fig=.pdf)
|
||||
|
||||
all: $(PDFS)
|
||||
SVGS := \
|
||||
architecture.svg
|
||||
|
||||
SVGPDFS = $(SVGS:.svg=.pdf)
|
||||
|
||||
all: $(FIGPDFS) $(SVGPDFS)
|
||||
|
||||
%.pdf: %.fig
|
||||
fig2dev -L pdf -z A4 -p xxx -c $< $@
|
||||
|
||||
%.pdf: %.svg
|
||||
inkscape --export-pdf=$@ $<
|
||||
|
||||
clean:
|
||||
@rm -rv $(PDFS)
|
||||
@rm -rv $(FIGPDFS) $(SVGPDFS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user