Commit 960e7ebc authored by Nils Goroll's avatar Nils Goroll

add pdf and svg output to the distribution

to remove the dependency on graphviz when building from a tarball
parent c1ae9a9e
...@@ -20,9 +20,10 @@ dist-hook: ...@@ -20,9 +20,10 @@ dist-hook:
# this is a4, letter is 8.5,11 # this is a4, letter is 8.5,11
SIZE = 8.4,11.7 SIZE = 8.4,11.7
EXTRA_DIST = $(srcdir)/*.dot EXTRA_DIST = $(srcdir)/*.dot \
$(PDFS) \
$(SVGS)
if HAVE_DOT
PDFS = \ PDFS = \
cache_http1_fsm.pdf \ cache_http1_fsm.pdf \
cache_req_fsm.pdf \ cache_req_fsm.pdf \
...@@ -33,33 +34,43 @@ SVGS = \ ...@@ -33,33 +34,43 @@ SVGS = \
cache_req_fsm.svg \ cache_req_fsm.svg \
cache_fetch.svg cache_fetch.svg
if HAVE_DOT
CLEANFILES = \ CLEANFILES = \
$(PDFS) \ $(PDFS) \
$(SVGS) $(SVGS)
endif endif
pdf: $(PDFS) pdf: $(PDFS)
html: $(SVGS) link_srcdir
# XXX does not fit onto a4 unless in landscape
cache_fetch.pdf: cache_fetch.dot
if ! HAVE_DOT if ! HAVE_DOT
@echo ================================================== @echo ==================================================
@echo You need graphviz installed to generate pdf output @echo You need graphviz installed to generate pdf output
@echo ================================================== @echo ==================================================
@false @false
else
@DOT@ -Tpdf -Gsize=$(SIZE) -Grotate=90 $< >$@
endif endif
html: $(SVGS) link_srcdir %.pdf: %.dot
if ! HAVE_DOT if ! HAVE_DOT
@echo =================================================== @echo ==================================================
@echo You need graphviz installed to generate html output @echo You need graphviz installed to generate pdf output
@echo =================================================== @echo ==================================================
@false @false
endif else
# XXX does not fit onto a4 unless in landscape
cache_fetch.pdf: cache_fetch.dot
@DOT@ -Tpdf -Gsize=$(SIZE) -Grotate=90 $< >$@
%.pdf: %.dot
@DOT@ -Tpdf -Gsize=$(SIZE) $< >$@ @DOT@ -Tpdf -Gsize=$(SIZE) $< >$@
endif
%.svg: %.dot %.svg: %.dot
if ! HAVE_DOT
@echo ===================================================
@echo You need graphviz installed to generate svg output
@echo ===================================================
@false
else
@DOT@ -Tsvg $< >$@ @DOT@ -Tsvg $< >$@
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment