]> git.proxmox.com Git - mirror_frr.git/blob - doc/Makefile.am
zebra: fix logging of MPLS labels
[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 = appendix.texi basic.texi bgpd.texi isisd.texi filter.texi \
63 vnc.texi \
64 babeld.texi \
65 install.texi ipv6.texi kernel.texi main.texi \
66 nhrpd.texi \
67 eigrpd.texi \
68 ospf6d.texi ospfd.texi \
69 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
70 snmp.texi vtysh.texi routeserver.texi $(figures_png) \
71 snmptrap.texi ospf_fundamentals.texi isisd.texi $(figures_txt)
72
73 .png.eps:
74 $(PNGTOEPS) $< "$@"
75
76 .png.pdf:
77 $(PNGTOPDF) $< "$@"
78
79 .dia.png:
80 $(DIATOPNG) "$@" $<
81
82 man_MANS = frr.1 frr-args.8
83
84 if PIMD
85 man_MANS += pimd.8
86 endif
87
88 if BGPD
89 man_MANS += bgpd.8
90 endif
91
92 if ISISD
93 man_MANS += isisd.8
94 endif
95
96 if OSPF6D
97 man_MANS += ospf6d.8
98 endif
99
100 if OSPFCLIENT
101 man_MANS += ospfclient.8
102 endif
103
104 if OSPFD
105 man_MANS += ospfd.8
106 endif
107
108 if LDPD
109 man_MANS += ldpd.8
110 endif
111
112 if RIPD
113 man_MANS += ripd.8
114 endif
115
116 if RIPNGD
117 man_MANS += ripngd.8
118 endif
119
120 if NHRPD
121 man_MANS += nhrpd.8
122 endif
123
124 if VTYSH
125 man_MANS += vtysh.1
126 endif
127
128 if WATCHFRR
129 man_MANS += watchfrr.8
130 endif
131
132 if ZEBRA
133 man_MANS += zebra.8
134 endif
135
136 if EIGRPD
137 man_MANS += eigrpd.8
138 endif
139
140 EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
141 \
142 bgpd.8.in \
143 isisd.8.in \
144 ospf6d.8.in \
145 ospfclient.8.in \
146 ospfd.8.in \
147 ldpd.8.in \
148 ripd.8.in \
149 ripngd.8.in \
150 pimd.8.in \
151 nhrpd.8.in \
152 vtysh.1.in \
153 watchfrr.8.in \
154 zebra.8.in \
155 frr.1.in \
156 eigrpd.8.in \
157 \
158 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
159 mpls/opaque_lsa.txt mpls/ospfd.conf \
160 $(figures_sources) $(figures_png) $(figures_txt)
161
162 draft-zebra-00.txt: draft-zebra-00.ms
163 groff -T ascii -ms $< > $@
164
165 # Ensure that all of the figures are copied into the html directory
166 html-local: $(HTMLS)
167 if test -d $(HTMLS) ; then \
168 cp -p $(figures_png) $(HTMLS) ; \
169 else \
170 echo "$(HTMLS) is not a directory. Make it so, the rerun make."; \
171 fi