]> git.proxmox.com Git - mirror_frr.git/blame - doc/Makefile.am
*: Initial Import of Babeld into FRR
[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
ab2416a0 9# to do conversion from png to eps/pdf for figures.
438f5286 10# PDF form is required for frr.pdf, using PDFTex at least.
bbd938e2 11#
bbd938e2 12# TeX implementation, which we depend on already anyway.
13#
14# dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
4bf6461e 15SUFFIXES = .png .eps .dia .pdf
bbd938e2 16DIATOPNG = dia -t png -e
17DIATOEPS = dia -t eps -e
5bc52c76 18PNGTOEPS = convert -antialias -contrast -despeckle
ab2416a0 19PNGTOPDF = $(PNGTOEPS)
6a22b1fc 20EPSTOPDF = epstopdf
21
65efcfce 22VNCFIGURES_PNG =
438f5286 23VNCFIGURES_DIA = -vnc-mesh -vnc-frr-route-reflector \
65efcfce
LB
24-vnc-commercial-route-reflector -vnc-redundant-route-reflectors \
25-vnc-gw -vnc-gw-rr
26
27# TODO: A target that creates an empty text file for each member of
28# VNCFIGURES_TXT
29VNCFIGURES_TXT = $(VNCFIGURES:%.png=%.txt)
30
bbd938e2 31# The figure sources
32figures_names_parts = -normal-processing -rs-processing \
65efcfce
LB
33 _topologies_full _topologies_rs \
34 $(VNCFIGURES_DIA)
35
4bf6461e 36figures_sources = $(figures_names_parts:%=fig%.dia)
65efcfce
LB
37figures_png = $(figures_names_parts:%=fig%.png) $(VNCFIGURES_PNG)
38figures_pdf = $(figures_names_parts:%=fig%.pdf) $(VNCFIGURES_PNG:%.png=%.pdf)
39figures_eps = $(figures_names_parts:%=fig%.eps) $(VNCFIGURES_PNG:%.png=%.eps)
4bf6461e 40figures_txt = $(figures_names_parts:%=fig%.txt)
bbd938e2 41
42# rather twisted logic because we have to build PDFs of the EPS figures for
438f5286 43# PDFTex and yet build one PDF, frr.pdf, from texi source. Which means we
bbd938e2 44# cant rely on a single automatic rule for *.pdf, eg the one automatically
45# provided by automake. If you are an automake wizard, please feel free to
46# compact it somehow.
718e3744 47
6a22b1fc 48# Built from defines.texi.in
d9905f01 49BUILT_SOURCES = defines.texi
76b89b4a 50
438f5286 51info_TEXINFOS = frr.texi
6a22b1fc 52
438f5286 53# Have to manually specify the frr.pdf rule in order to allow
bbd938e2 54# us to have a generic automatic .pdf rule to build the figure sources
d9905f01 55# because it cant just work from the png's directly it seems - contrary
56# to the documentation...
438f5286 57frr.pdf: $(info_TEXINFOS) $(figures_pdf) $(frr_TEXINFOS)
77817120 58 $(TEXI2PDF) -o "$@" $< || true
6a22b1fc 59
438f5286 60frr_TEXINFOS = appendix.texi basic.texi bgpd.texi isisd.texi filter.texi \
65efcfce 61 vnc.texi \
ca10883e 62 babeld.texi \
caba6093
TT
63 install.texi ipv6.texi kernel.texi main.texi \
64 nhrpd.texi \
6c85c081 65 eigrpd.texi \
caba6093 66 ospf6d.texi ospfd.texi \
17398233
JC
67 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
68 snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
b7a24e50 69 snmptrap.texi ospf_fundamentals.texi isisd.texi $(figures_txt)
6a22b1fc 70
4bf6461e 71.png.eps:
bbd938e2 72 $(PNGTOEPS) $< "$@"
73
4bf6461e 74.png.pdf:
ab2416a0 75 $(PNGTOPDF) $< "$@"
718e3744 76
4bf6461e 77.dia.png:
bbd938e2 78 $(DIATOPNG) "$@" $<
79
438f5286 80man_MANS = frr.1
718e3744 81
12e41d03
DL
82if PIMD
83man_MANS += pimd.8
84endif
85
f027d331
DW
86if BGPD
87man_MANS += bgpd.8
88endif
89
90if ISISD
91man_MANS += isisd.8
92endif
93
94if OSPF6D
95man_MANS += ospf6d.8
96endif
97
7b0df9c5
DW
98if OSPFCLIENT
99man_MANS += ospfclient.8
100endif
101
f027d331
DW
102if OSPFD
103man_MANS += ospfd.8
104endif
105
eac6e3f0
RW
106if LDPD
107man_MANS += ldpd.8
108endif
109
f027d331
DW
110if RIPD
111man_MANS += ripd.8
112endif
113
114if RIPNGD
115man_MANS += ripngd.8
116endif
117
caba6093
TT
118if NHRPD
119man_MANS += nhrpd.8
120endif
121
f027d331
DW
122if VTYSH
123man_MANS += vtysh.1
124endif
125
9473e340
DS
126if WATCHFRR
127man_MANS += watchfrr.8
7b0df9c5
DW
128endif
129
f027d331
DW
130if ZEBRA
131man_MANS += zebra.8
132endif
133
6c85c081
DS
134if EIGRPD
135man_MANS += eigrpd.8
136endif
137
f027d331 138EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
461c7bee
DL
139 \
140 bgpd.8.in \
141 isisd.8.in \
142 ospf6d.8.in \
143 ospfclient.8.in \
144 ospfd.8.in \
145 ldpd.8.in \
146 ripd.8.in \
147 ripngd.8.in \
148 pimd.8.in \
caba6093 149 nhrpd.8.in \
461c7bee 150 vtysh.1.in \
9473e340 151 watchfrr.8.in \
461c7bee 152 zebra.8.in \
438f5286 153 frr.1.in \
6c85c081 154 eigrpd.8.in \
461c7bee 155 \
f2bfdee5 156 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
a47d98f4 157 mpls/opaque_lsa.txt mpls/ospfd.conf \
ab2416a0 158 $(figures_sources) $(figures_png) $(figures_txt)
718e3744 159
54afb658
AS
160draft-zebra-00.txt: draft-zebra-00.ms
161 groff -T ascii -ms $< > $@
65efcfce
LB
162
163# Ensure that all of the figures are copied into the html directory
164html-local: $(HTMLS)
165 if test -d $(HTMLS) ; then \
166 cp -p $(figures_png) $(HTMLS) ; \
167 else \
168 echo "$(HTMLS) is not a directory. Make it so, the rerun make."; \
169 fi