]>
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 | |
15 | DIATOPNG = dia -t png -e | |
16 | DIATOEPS = dia -t eps -e | |
ab2416a0 PJ |
17 | PNGTOEPS = convert -dither -antialias -contrast -despeckle |
18 | PNGTOPDF = $(PNGTOEPS) | |
6a22b1fc | 19 | EPSTOPDF = epstopdf |
20 | ||
bbd938e2 | 21 | # The figure sources |
22 | figures_names_parts = -normal-processing -rs-processing \ | |
23 | _topologies_full _topologies_rs | |
a47d98f4 | 24 | figures_sources := $(figures_names_parts:%=fig%.dia) |
25 | figures_png := $(figures_names_parts:%=fig%.png) | |
26 | figures_pdf := $(figures_names_parts:%=fig%.pdf) | |
27 | figures_eps := $(figures_names_parts:%=fig%.eps) | |
ab2416a0 | 28 | figures_txt := $(figures_names_parts:%=fig%.txt) |
bbd938e2 | 29 | |
30 | # rather twisted logic because we have to build PDFs of the EPS figures for | |
31 | # PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we | |
32 | # cant rely on a single automatic rule for *.pdf, eg the one automatically | |
33 | # provided by automake. If you are an automake wizard, please feel free to | |
34 | # compact it somehow. | |
718e3744 | 35 | |
6a22b1fc | 36 | # Built from defines.texi.in |
d9905f01 | 37 | BUILT_SOURCES = defines.texi |
76b89b4a | 38 | |
6a22b1fc | 39 | info_TEXINFOS = quagga.texi |
40 | ||
bbd938e2 | 41 | # Have to manually specify the quagga.pdf rule in order to allow |
42 | # us to have a generic automatic .pdf rule to build the figure sources | |
d9905f01 | 43 | # because it cant just work from the png's directly it seems - contrary |
44 | # to the documentation... | |
e5b308d1 | 45 | quagga.pdf: $(info_TEXINFOS) $(figures_pdf) |
649e853f | 46 | $(TEXI2PDF) -o "$@" $< |
6a22b1fc | 47 | |
5282d6ef | 48 | quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi install.texi \ |
718e3744 | 49 | ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi overview.texi \ |
e050db26 | 50 | protocol.texi ripd.texi ripngd.texi routemap.texi snmp.texi \ |
ab2416a0 PJ |
51 | vtysh.texi routeserver.texi defines.texi $(figures_png) snmptrap.texi \ |
52 | $(figures_txt) | |
6a22b1fc | 53 | |
bbd938e2 | 54 | %.eps: %.png |
55 | $(PNGTOEPS) $< "$@" | |
56 | ||
ab2416a0 PJ |
57 | %.pdf: %.png |
58 | $(PNGTOPDF) $< "$@" | |
718e3744 | 59 | |
bbd938e2 | 60 | %.png: %.dia |
61 | $(DIATOPNG) "$@" $< | |
62 | ||
ee3e1157 | 63 | man_MANS = vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 isisd.8 |
718e3744 | 64 | |
f2bfdee5 | 65 | EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt $(man_MANS) \ |
66 | mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \ | |
a47d98f4 | 67 | mpls/opaque_lsa.txt mpls/ospfd.conf \ |
ab2416a0 | 68 | $(figures_sources) $(figures_png) $(figures_txt) |
718e3744 | 69 | |
54afb658 AS |
70 | draft-zebra-00.txt: draft-zebra-00.ms |
71 | groff -T ascii -ms $< > $@ |