]> git.proxmox.com Git - mirror_frr.git/blob - doc/Makefile.am
tests: fix warnings by removing dead code
[mirror_frr.git] / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
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/pdf for figures.
10 # PDF form is required for frr.pdf, using PDFTex at least.
11 #
12 # TeX implementation, which we depend on already anyway.
13 #
14 # dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
15 SUFFIXES = .png .eps .dia .pdf
16 DIATOPNG = dia -t png -e
17 DIATOEPS = dia -t eps -e
18 PNGTOEPS = convert -antialias -contrast -despeckle
19 PNGTOPDF = $(PNGTOEPS)
20 EPSTOPDF = epstopdf
21
22 VNCFIGURES_PNG =
23 VNCFIGURES_DIA = -vnc-mesh -vnc-frr-route-reflector \
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
29 VNCFIGURES_TXT = $(VNCFIGURES:%.png=%.txt)
30
31 # The figure sources
32 figures_names_parts = -normal-processing -rs-processing \
33 _topologies_full _topologies_rs \
34 $(VNCFIGURES_DIA)
35
36 figures_sources = $(figures_names_parts:%=fig%.dia)
37 figures_png = $(figures_names_parts:%=fig%.png) $(VNCFIGURES_PNG)
38 figures_pdf = $(figures_names_parts:%=fig%.pdf) $(VNCFIGURES_PNG:%.png=%.pdf)
39 figures_eps = $(figures_names_parts:%=fig%.eps) $(VNCFIGURES_PNG:%.png=%.eps)
40 figures_txt = $(figures_names_parts:%=fig%.txt)
41
42 # rather twisted logic because we have to build PDFs of the EPS figures for
43 # PDFTex and yet build one PDF, frr.pdf, from texi source. Which means we
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.
47
48 info_TEXINFOS = frr.texi
49
50 # Have to manually specify the frr.pdf rule in order to allow
51 # us to have a generic automatic .pdf rule to build the figure sources
52 # because it cant just work from the png's directly it seems - contrary
53 # to the documentation...
54 frr.pdf: $(info_TEXINFOS) $(figures_pdf) $(frr_TEXINFOS) defines.texi
55 $(TEXI2PDF) -o "$@" $< || true
56
57 # don't ask me why the info file is in srcdir
58 $(srcdir)/frr.info: $(frr_TEXINFOS) defines.texi
59 frr.dvi: $(frr_TEXINFOS) defines.texi
60 frr.html: $(frr_TEXINFOS) defines.texi
61
62 frr_TEXINFOS = \
63 appendix.texi \
64 basic.texi \
65 bgpd.texi \
66 isisd.texi \
67 filter.texi \
68 vnc.texi \
69 babeld.texi \
70 install.texi \
71 ipv6.texi \
72 kernel.texi \
73 main.texi \
74 nhrpd.texi \
75 eigrpd.texi \
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) \
90 rpki.texi \
91 pimd.texi \
92 #END
93
94 .png.eps:
95 $(PNGTOEPS) $< "$@"
96
97 .png.pdf:
98 $(PNGTOPDF) $< "$@"
99
100 .dia.png:
101 $(DIATOPNG) "$@" $<
102
103 man_MANS = frr.1 frr-args.8
104
105 if PIMD
106 man_MANS += pimd.8
107 endif
108
109 if BGPD
110 man_MANS += bgpd.8
111 endif
112
113 if ISISD
114 man_MANS += isisd.8
115 endif
116
117 if OSPF6D
118 man_MANS += ospf6d.8
119 endif
120
121 if OSPFCLIENT
122 man_MANS += ospfclient.8
123 endif
124
125 if OSPFD
126 man_MANS += ospfd.8
127 endif
128
129 if LDPD
130 man_MANS += ldpd.8
131 endif
132
133 if RIPD
134 man_MANS += ripd.8
135 endif
136
137 if RIPNGD
138 man_MANS += ripngd.8
139 endif
140
141 if NHRPD
142 man_MANS += nhrpd.8
143 endif
144
145 if VTYSH
146 man_MANS += vtysh.1
147 endif
148
149 if WATCHFRR
150 man_MANS += watchfrr.8
151 endif
152
153 if ZEBRA
154 man_MANS += zebra.8
155 endif
156
157 if EIGRPD
158 man_MANS += eigrpd.8
159 endif
160
161 EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
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 \
172 nhrpd.8.in \
173 vtysh.1.in \
174 watchfrr.8.in \
175 zebra.8.in \
176 frr.1.in \
177 eigrpd.8.in \
178 \
179 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
180 mpls/opaque_lsa.txt mpls/ospfd.conf \
181 $(figures_sources) $(figures_png) $(figures_txt)
182
183 draft-zebra-00.txt: draft-zebra-00.ms
184 groff -T ascii -ms $< > $@
185
186 # Ensure that all of the figures are copied into the html directory
187 html-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