1 ## Process this file with automake to produce Makefile.in.
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.
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 quagga.pdf, using PDFTex at least.
12 # TeX implementation, which we depend on already anyway.
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)
23 figures_names_parts = -normal-processing -rs-processing
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)
28 figures_txt = $(figures_names_parts:%=fig%.txt)
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
36 #quagga.pdf: $(info_TEXINFOS) $(quagga_TEXINFOS)
37 # $(TEXI2PDF) -o "$@" $< || true
39 info_TEXINFOS = quagga.texi
41 quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
42 install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
43 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
44 snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
45 snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
76 man_MANS += ospfclient.8
100 man_MANS += watchquagga.8
107 AM_MAKEINFOHTMLFLAGS = --css-include=$(srcdir)/texinfo.css
109 EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
110 bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
111 ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
112 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
113 mpls/opaque_lsa.txt mpls/ospfd.conf \
114 $(figures_sources) $(figures_png) $(figures_txt) \
115 texinfo.tex texinfo.css
117 draft-zebra-00.txt: draft-zebra-00.ms
118 groff -T ascii -ms $< > $@
120 CLEANFILES = *.{fn,fns,cp,cps,ky,kys}
121 DISTCLEANFILES = quagga.info*
123 # do nothing for DVI, so we don't have to generate or distribute EPS