]> git.proxmox.com Git - mirror_frr.git/blame - doc/Makefile.am
[zebra] arrange structs in padding-efficient manner and remove unused field
[mirror_frr.git] / doc / Makefile.am
CommitLineData
718e3744 1## Process this file with automake to produce Makefile.in.
2
bbd938e2 3# Dia, the version i have at least, doesn't do very good EPS output
4# (some of the text is scaled strangely). So this will work, but
5# it is probably better to use something like gimp to convert the
6# dia exported PNG files to EPS manually.
7#
8# Here we use 'convert' from the well known 'ImageMagick' package
9# to do conversion from png to eps.
10#
11# PDF is required for quagga.pdf, we use epstopdf from the well known TeTeX
12# TeX implementation, which we depend on already anyway.
13#
14# dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
15DIATOPNG = dia -t png -e
16DIATOEPS = dia -t eps -e
17PNGTOEPS = convert
6a22b1fc 18EPSTOPDF = epstopdf
19
bbd938e2 20# The figure sources
21figures_names_parts = -normal-processing -rs-processing \
22 _topologies_full _topologies_rs
a47d98f4 23figures_sources := $(figures_names_parts:%=fig%.dia)
24figures_png := $(figures_names_parts:%=fig%.png)
25figures_pdf := $(figures_names_parts:%=fig%.pdf)
26figures_eps := $(figures_names_parts:%=fig%.eps)
bbd938e2 27
28# rather twisted logic because we have to build PDFs of the EPS figures for
29# PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we
30# cant rely on a single automatic rule for *.pdf, eg the one automatically
31# provided by automake. If you are an automake wizard, please feel free to
32# compact it somehow.
718e3744 33
6a22b1fc 34# Built from defines.texi.in
d9905f01 35BUILT_SOURCES = defines.texi
76b89b4a 36
6a22b1fc 37info_TEXINFOS = quagga.texi
38
bbd938e2 39# Have to manually specify the quagga.pdf rule in order to allow
40# us to have a generic automatic .pdf rule to build the figure sources
d9905f01 41# because it cant just work from the png's directly it seems - contrary
42# to the documentation...
e5b308d1 43quagga.pdf: $(info_TEXINFOS) $(figures_pdf)
649e853f 44 $(TEXI2PDF) -o "$@" $<
6a22b1fc 45
5282d6ef 46quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi install.texi \
718e3744 47 ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi overview.texi \
e050db26 48 protocol.texi ripd.texi ripngd.texi routemap.texi snmp.texi \
5729e089 49 vtysh.texi routeserver.texi defines.texi $(figures_png) snmptrap.texi
6a22b1fc 50
bbd938e2 51%.eps: %.png
52 $(PNGTOEPS) $< "$@"
53
6a22b1fc 54%.pdf: %.eps
55 $(EPSTOPDF) --outfile="$@" $<
718e3744 56
bbd938e2 57%.png: %.dia
58 $(DIATOPNG) "$@" $<
59
ee3e1157 60man_MANS = vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 isisd.8
718e3744 61
f2bfdee5 62EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt $(man_MANS) \
63 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
a47d98f4 64 mpls/opaque_lsa.txt mpls/ospfd.conf \
d9905f01 65 $(figures_sources) $(figures_png)
718e3744 66
67draft-zebra-00.txt:
68 groff -T ascii -ms draft-zebra-00.ms > draft-zebra-00.txt