]>
Commit | Line | Data |
---|---|---|
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 | 15 | SUFFIXES = .png .eps .dia .pdf |
bbd938e2 | 16 | DIATOPNG = dia -t png -e |
17 | DIATOEPS = dia -t eps -e | |
5bc52c76 | 18 | PNGTOEPS = convert -antialias -contrast -despeckle |
ab2416a0 | 19 | PNGTOPDF = $(PNGTOEPS) |
6a22b1fc | 20 | EPSTOPDF = epstopdf |
21 | ||
65efcfce | 22 | VNCFIGURES_PNG = |
438f5286 | 23 | VNCFIGURES_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 | |
29 | VNCFIGURES_TXT = $(VNCFIGURES:%.png=%.txt) | |
30 | ||
bbd938e2 | 31 | # The figure sources |
32 | figures_names_parts = -normal-processing -rs-processing \ | |
65efcfce LB |
33 | _topologies_full _topologies_rs \ |
34 | $(VNCFIGURES_DIA) | |
35 | ||
4bf6461e | 36 | figures_sources = $(figures_names_parts:%=fig%.dia) |
65efcfce LB |
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) | |
4bf6461e | 40 | figures_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 | 48 | info_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 | 54 | frr.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 |
59 | frr.dvi: $(frr_TEXINFOS) defines.texi | |
60 | frr.html: $(frr_TEXINFOS) defines.texi | |
70d27c5b | 61 | |
2ce92994 DS |
62 | frr_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 | 103 | man_MANS = frr.1 frr-args.8 |
718e3744 | 104 | |
12e41d03 DL |
105 | if PIMD |
106 | man_MANS += pimd.8 | |
107 | endif | |
108 | ||
f027d331 DW |
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 | ||
7b0df9c5 DW |
121 | if OSPFCLIENT |
122 | man_MANS += ospfclient.8 | |
123 | endif | |
124 | ||
f027d331 DW |
125 | if OSPFD |
126 | man_MANS += ospfd.8 | |
127 | endif | |
128 | ||
eac6e3f0 RW |
129 | if LDPD |
130 | man_MANS += ldpd.8 | |
131 | endif | |
132 | ||
f027d331 DW |
133 | if RIPD |
134 | man_MANS += ripd.8 | |
135 | endif | |
136 | ||
137 | if RIPNGD | |
138 | man_MANS += ripngd.8 | |
139 | endif | |
140 | ||
caba6093 TT |
141 | if NHRPD |
142 | man_MANS += nhrpd.8 | |
143 | endif | |
144 | ||
f027d331 DW |
145 | if VTYSH |
146 | man_MANS += vtysh.1 | |
147 | endif | |
148 | ||
9473e340 DS |
149 | if WATCHFRR |
150 | man_MANS += watchfrr.8 | |
7b0df9c5 DW |
151 | endif |
152 | ||
f027d331 DW |
153 | if ZEBRA |
154 | man_MANS += zebra.8 | |
155 | endif | |
156 | ||
6c85c081 DS |
157 | if EIGRPD |
158 | man_MANS += eigrpd.8 | |
159 | endif | |
160 | ||
f027d331 | 161 | EXTRA_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 |
183 | draft-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 | |
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 |