blob: 3f32789e5925c1937147c7ba6d68210a9978eb53 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001## Process this file with automake to produce Makefile.in.
2
paulbbd938e2005-04-02 10:18:42 +00003# 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.
10#
11# PDF is required for quagga.pdf, we use epstopdf from the well known TeTeX
12# TeX implementation, which we depend on already anyway.
13#
14# dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
15DIATOPNG = dia -t png -e
16DIATOEPS = dia -t eps -e
17PNGTOEPS = convert
paul6a22b1f2004-11-07 19:39:13 +000018EPSTOPDF = epstopdf
19
paulbbd938e2005-04-02 10:18:42 +000020# The figure sources
21figures_names_parts = -normal-processing -rs-processing \
22 _topologies_full _topologies_rs
23figures_SOURCES := $(figures_names_parts:%=fig%.dia)
24figures_BUILT_SOURCES := $(figures_names_parts:%=fig%.png) \
25 $(figures_names_parts:%=fig%.eps) \
26 $(figures_names_parts:%=fig%.pdf)
27
28# rather twisted logic because we have to build PDFs of the EPS figures for
29# PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we
30# cant rely on a single automatic rule for *.pdf, eg the one automatically
31# provided by automake. If you are an automake wizard, please feel free to
32# compact it somehow.
paul6a22b1f2004-11-07 19:39:13 +000033
34# Built from defines.texi.in
35BUILT_SOURCES = defines.texi
36
paul7190f4e2003-08-12 12:40:20 +000037info_TEXINFOS = quagga.texi
paul718e3742002-12-13 20:15:29 +000038
paulbbd938e2005-04-02 10:18:42 +000039# i'd prefer to have this in CVS, but not nice for dist tarball users,
40# as these are all built sources, with various build dependencies (eg dia)
41#CLEANFILES = *.pdf *.eps *.png
paul6a22b1f2004-11-07 19:39:13 +000042
paulbbd938e2005-04-02 10:18:42 +000043# Have to manually specify the quagga.pdf rule in order to allow
44# us to have a generic automatic .pdf rule to build the figure sources
paul6a22b1f2004-11-07 19:39:13 +000045quagga.pdf: quagga.texi \
46 fig-normal-processing.pdf fig_topologies_full.pdf \
47 fig-rs-processing.pdf fig_topologies_rs.pdf
48 $(TEXI2PDF) -o "$@" $(info_TEXINFOS)
paul76b89b42004-11-06 17:13:09 +000049
paul5282d6e2003-08-13 04:55:13 +000050quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi install.texi \
paul718e3742002-12-13 20:15:29 +000051 ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi overview.texi \
paule050db22004-11-08 16:28:39 +000052 protocol.texi ripd.texi ripngd.texi routemap.texi snmp.texi \
53 vtysh.texi routeserver.texi defines.texi $(figures_SOURCES)
paul6a22b1f2004-11-07 19:39:13 +000054
paulbbd938e2005-04-02 10:18:42 +000055%.eps: %.png
56 $(PNGTOEPS) $< "$@"
57
paul6a22b1f2004-11-07 19:39:13 +000058%.pdf: %.eps
59 $(EPSTOPDF) --outfile="$@" $<
paul718e3742002-12-13 20:15:29 +000060
paulbbd938e2005-04-02 10:18:42 +000061%.png: %.dia
62 $(DIATOPNG) "$@" $<
63
hassoee3e1152004-12-18 15:59:25 +000064man_MANS = vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 isisd.8
paul718e3742002-12-13 20:15:29 +000065
gdtf2bfdee2004-06-30 17:25:15 +000066EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt $(man_MANS) \
67 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
paulbbd938e2005-04-02 10:18:42 +000068 mpls/opaque_lsa.txt mpls/ospfd.conf $(figures_BUILT_SOURCES)
paul718e3742002-12-13 20:15:29 +000069
70draft-zebra-00.txt:
71 groff -T ascii -ms draft-zebra-00.ms > draft-zebra-00.txt