]>
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 PJ |
9 | # to do conversion from png to eps/pdf for figures. |
10 | # PDF form is required for quagga.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 | ||
bbd938e2 | 22 | # The figure sources |
23 | figures_names_parts = -normal-processing -rs-processing \ | |
24 | _topologies_full _topologies_rs | |
4bf6461e JJ |
25 | figures_sources = $(figures_names_parts:%=fig%.dia) |
26 | figures_png = $(figures_names_parts:%=fig%.png) | |
27 | figures_pdf = $(figures_names_parts:%=fig%.pdf) | |
28 | figures_eps = $(figures_names_parts:%=fig%.eps) | |
29 | figures_txt = $(figures_names_parts:%=fig%.txt) | |
bbd938e2 | 30 | |
31 | # rather twisted logic because we have to build PDFs of the EPS figures for | |
32 | # PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we | |
33 | # cant rely on a single automatic rule for *.pdf, eg the one automatically | |
34 | # provided by automake. If you are an automake wizard, please feel free to | |
35 | # compact it somehow. | |
718e3744 | 36 | |
6a22b1fc | 37 | # Built from defines.texi.in |
d9905f01 | 38 | BUILT_SOURCES = defines.texi |
76b89b4a | 39 | |
6a22b1fc | 40 | info_TEXINFOS = quagga.texi |
41 | ||
bbd938e2 | 42 | # Have to manually specify the quagga.pdf rule in order to allow |
43 | # us to have a generic automatic .pdf rule to build the figure sources | |
d9905f01 | 44 | # because it cant just work from the png's directly it seems - contrary |
45 | # to the documentation... | |
7015b8a2 | 46 | quagga.pdf: $(info_TEXINFOS) $(figures_pdf) $(quagga_TEXINFOS) |
649e853f | 47 | $(TEXI2PDF) -o "$@" $< |
6a22b1fc | 48 | |
17398233 JC |
49 | quagga_TEXINFOS = appendix.texi babeld.texi basic.texi bgpd.texi filter.texi \ |
50 | install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \ | |
51 | overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \ | |
52 | snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \ | |
53 | snmptrap.texi $(figures_txt) | |
6a22b1fc | 54 | |
4bf6461e | 55 | .png.eps: |
bbd938e2 | 56 | $(PNGTOEPS) $< "$@" |
57 | ||
4bf6461e | 58 | .png.pdf: |
ab2416a0 | 59 | $(PNGTOPDF) $< "$@" |
718e3744 | 60 | |
4bf6461e | 61 | .dia.png: |
bbd938e2 | 62 | $(DIATOPNG) "$@" $< |
63 | ||
f027d331 | 64 | man_MANS = |
718e3744 | 65 | |
f027d331 DW |
66 | if BGPD |
67 | man_MANS += bgpd.8 | |
68 | endif | |
69 | ||
70 | if ISISD | |
71 | man_MANS += isisd.8 | |
72 | endif | |
73 | ||
74 | if OSPF6D | |
75 | man_MANS += ospf6d.8 | |
76 | endif | |
77 | ||
7b0df9c5 DW |
78 | if OSPFCLIENT |
79 | man_MANS += ospfclient.8 | |
80 | endif | |
81 | ||
f027d331 DW |
82 | if OSPFD |
83 | man_MANS += ospfd.8 | |
84 | endif | |
85 | ||
86 | if RIPD | |
87 | man_MANS += ripd.8 | |
88 | endif | |
89 | ||
90 | if RIPNGD | |
91 | man_MANS += ripngd.8 | |
92 | endif | |
93 | ||
94 | if VTYSH | |
95 | man_MANS += vtysh.1 | |
96 | endif | |
97 | ||
7b0df9c5 DW |
98 | if WATCHQUAGGA |
99 | man_MANS += watchquagga.8 | |
100 | endif | |
101 | ||
f027d331 DW |
102 | if ZEBRA |
103 | man_MANS += zebra.8 | |
104 | endif | |
105 | ||
106 | EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \ | |
7b0df9c5 DW |
107 | bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \ |
108 | ripngd.8 vtysh.1 watchquagga.8 zebra.8 \ | |
f2bfdee5 | 109 | mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \ |
a47d98f4 | 110 | mpls/opaque_lsa.txt mpls/ospfd.conf \ |
ab2416a0 | 111 | $(figures_sources) $(figures_png) $(figures_txt) |
718e3744 | 112 | |
54afb658 AS |
113 | draft-zebra-00.txt: draft-zebra-00.ms |
114 | groff -T ascii -ms $< > $@ |