]> git.proxmox.com Git - mirror_frr.git/blame - doc/Makefile.am
Merge pull request #1563 from opensourcerouting/isis-bpf-hlen
[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
438f5286 48info_TEXINFOS = frr.texi
6a22b1fc 49
438f5286 50# Have to manually specify the frr.pdf rule in order to allow
bbd938e2 51# us to have a generic automatic .pdf rule to build the figure sources
d9905f01 52# because it cant just work from the png's directly it seems - contrary
53# to the documentation...
70d27c5b 54frr.pdf: $(info_TEXINFOS) $(figures_pdf) $(frr_TEXINFOS) defines.texi
1ac2e776 55 $(TEXI2PDF) -o "$@" $< || true
6a22b1fc 56
70d27c5b 57# don't ask me why the info file is in srcdir
34982989
DL
58$(srcdir)/frr.info: $(frr_TEXINFOS) defines.texi
59frr.dvi: $(frr_TEXINFOS) defines.texi
60frr.html: $(frr_TEXINFOS) defines.texi
70d27c5b 61
2ce92994
DS
62frr_TEXINFOS = \
63 appendix.texi \
64 basic.texi \
65 bgpd.texi \
66 isisd.texi \
67 filter.texi \
65efcfce 68 vnc.texi \
ca10883e 69 babeld.texi \
2ce92994
DS
70 install.texi \
71 ipv6.texi \
72 kernel.texi \
73 main.texi \
caba6093 74 nhrpd.texi \
6c85c081 75 eigrpd.texi \
2ce92994
DS
76 ospf6d.texi \
77 ospfd.texi \
78 overview.texi \
79 protocol.texi \
80 ripd.texi \
81 ripngd.texi \
82 routemap.texi \
83 snmp.texi \
84 vtysh.texi \
85 routeserver.texi \
86 $(figures_png) \
87 snmptrap.texi \
88 ospf_fundamentals.texi \
89 isisd.texi $(figures_txt) \
42642bab 90 rpki.texi \
2ce92994
DS
91 pimd.texi \
92 #END
6a22b1fc 93
4bf6461e 94.png.eps:
bbd938e2 95 $(PNGTOEPS) $< "$@"
96
4bf6461e 97.png.pdf:
ab2416a0 98 $(PNGTOPDF) $< "$@"
718e3744 99
4bf6461e 100.dia.png:
bbd938e2 101 $(DIATOPNG) "$@" $<
102
5309b14e 103man_MANS = frr.1 frr-args.8
718e3744 104
12e41d03
DL
105if PIMD
106man_MANS += pimd.8
107endif
108
f027d331
DW
109if BGPD
110man_MANS += bgpd.8
111endif
112
113if ISISD
114man_MANS += isisd.8
115endif
116
117if OSPF6D
118man_MANS += ospf6d.8
119endif
120
7b0df9c5
DW
121if OSPFCLIENT
122man_MANS += ospfclient.8
123endif
124
f027d331
DW
125if OSPFD
126man_MANS += ospfd.8
127endif
128
eac6e3f0
RW
129if LDPD
130man_MANS += ldpd.8
131endif
132
f027d331
DW
133if RIPD
134man_MANS += ripd.8
135endif
136
137if RIPNGD
138man_MANS += ripngd.8
139endif
140
caba6093
TT
141if NHRPD
142man_MANS += nhrpd.8
143endif
144
f027d331
DW
145if VTYSH
146man_MANS += vtysh.1
147endif
148
9473e340
DS
149if WATCHFRR
150man_MANS += watchfrr.8
7b0df9c5
DW
151endif
152
f027d331
DW
153if ZEBRA
154man_MANS += zebra.8
155endif
156
6c85c081
DS
157if EIGRPD
158man_MANS += eigrpd.8
159endif
160
f027d331 161EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
461c7bee
DL
162 \
163 bgpd.8.in \
164 isisd.8.in \
165 ospf6d.8.in \
166 ospfclient.8.in \
167 ospfd.8.in \
168 ldpd.8.in \
169 ripd.8.in \
170 ripngd.8.in \
171 pimd.8.in \
caba6093 172 nhrpd.8.in \
461c7bee 173 vtysh.1.in \
9473e340 174 watchfrr.8.in \
461c7bee 175 zebra.8.in \
438f5286 176 frr.1.in \
6c85c081 177 eigrpd.8.in \
461c7bee 178 \
f2bfdee5 179 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
a47d98f4 180 mpls/opaque_lsa.txt mpls/ospfd.conf \
ab2416a0 181 $(figures_sources) $(figures_png) $(figures_txt)
718e3744 182
54afb658
AS
183draft-zebra-00.txt: draft-zebra-00.ms
184 groff -T ascii -ms $< > $@
65efcfce
LB
185
186# Ensure that all of the figures are copied into the html directory
187html-local: $(HTMLS)
188 if test -d $(HTMLS) ; then \
189 cp -p $(figures_png) $(HTMLS) ; \
190 else \
191 echo "$(HTMLS) is not a directory. Make it so, the rerun make."; \
192 fi