blob: af712626299677699745d801545b6a432bc64673 [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
Paul Jakmaab2416a2006-04-03 21:24:27 +00009# to do conversion from png to eps/pdf for figures.
10# PDF form is required for quagga.pdf, using PDFTex at least.
paulbbd938e2005-04-02 10:18:42 +000011#
paulbbd938e2005-04-02 10:18:42 +000012# TeX implementation, which we depend on already anyway.
13#
14# dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
Jeremy Jackson4bf64612009-01-21 14:15:44 -050015SUFFIXES = .png .eps .dia .pdf
paulbbd938e2005-04-02 10:18:42 +000016DIATOPNG = dia -t png -e
17DIATOEPS = dia -t eps -e
Paul Jakma5bc52c72009-06-22 16:11:06 +010018PNGTOEPS = convert -antialias -contrast -despeckle
Paul Jakmaab2416a2006-04-03 21:24:27 +000019PNGTOPDF = $(PNGTOEPS)
paul6a22b1f2004-11-07 19:39:13 +000020EPSTOPDF = epstopdf
21
paulbbd938e2005-04-02 10:18:42 +000022# The figure sources
Paul Jakma974511e2017-03-08 22:01:37 +000023figures_names_parts = -normal-processing -rs-processing
Jeremy Jackson4bf64612009-01-21 14:15:44 -050024figures_sources = $(figures_names_parts:%=fig%.dia)
25figures_png = $(figures_names_parts:%=fig%.png)
26figures_pdf = $(figures_names_parts:%=fig%.pdf)
27figures_eps = $(figures_names_parts:%=fig%.eps)
28figures_txt = $(figures_names_parts:%=fig%.txt)
paulbbd938e2005-04-02 10:18:42 +000029
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.
paul6a22b1f2004-11-07 19:39:13 +000035
paul7190f4e2003-08-12 12:40:20 +000036info_TEXINFOS = quagga.texi
paul718e3742002-12-13 20:15:29 +000037
paulbbd938e2005-04-02 10:18:42 +000038# Have to manually specify the quagga.pdf rule in order to allow
39# us to have a generic automatic .pdf rule to build the figure sources
pauld9905f02005-04-05 08:04:18 +000040# because it cant just work from the png's directly it seems - contrary
41# to the documentation...
Paul Jakma69c62982017-03-08 21:54:09 +000042quagga.pdf: $(info_TEXINFOS) $(quagga_TEXINFOS)
David Lamparterf16195c2014-11-28 08:40:58 +010043 $(TEXI2PDF) -o "$@" $< || true
paul76b89b42004-11-06 17:13:09 +000044
Paul Jakma336724d2015-05-11 15:13:31 +010045quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
Juliusz Chroboczek17398232012-02-11 14:27:16 +010046 install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
47 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
48 snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
Paul Jakma461649d2017-01-27 11:19:48 +000049 snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
50 $(figures_txt)
paul6a22b1f2004-11-07 19:39:13 +000051
Jeremy Jackson4bf64612009-01-21 14:15:44 -050052.png.eps:
paulbbd938e2005-04-02 10:18:42 +000053 $(PNGTOEPS) $< "$@"
54
Jeremy Jackson4bf64612009-01-21 14:15:44 -050055.png.pdf:
Paul Jakmaab2416a2006-04-03 21:24:27 +000056 $(PNGTOPDF) $< "$@"
paul718e3742002-12-13 20:15:29 +000057
Jeremy Jackson4bf64612009-01-21 14:15:44 -050058.dia.png:
paulbbd938e2005-04-02 10:18:42 +000059 $(DIATOPNG) "$@" $<
60
Everton Marquesff57d362014-06-25 15:54:03 -030061man_MANS =
62
Everton Marques871dbcf2009-08-11 15:43:05 -030063if PIMD
64man_MANS += pimd.8
65endif
paul718e3742002-12-13 20:15:29 +000066
David Wardf027d332012-04-30 11:36:15 -040067if BGPD
68man_MANS += bgpd.8
69endif
70
71if ISISD
72man_MANS += isisd.8
73endif
74
75if OSPF6D
76man_MANS += ospf6d.8
77endif
78
David Ward7b0df9c2012-04-30 11:36:16 -040079if OSPFCLIENT
80man_MANS += ospfclient.8
81endif
82
David Wardf027d332012-04-30 11:36:15 -040083if OSPFD
84man_MANS += ospfd.8
85endif
86
87if RIPD
88man_MANS += ripd.8
89endif
90
91if RIPNGD
92man_MANS += ripngd.8
93endif
94
Timo Teräsb1887c82017-01-24 16:42:19 +020095if NHRPD
96man_MANS += nhrpd.8
97endif
98
David Wardf027d332012-04-30 11:36:15 -040099if VTYSH
100man_MANS += vtysh.1
101endif
102
David Ward7b0df9c2012-04-30 11:36:16 -0400103if WATCHQUAGGA
104man_MANS += watchquagga.8
105endif
106
David Wardf027d332012-04-30 11:36:15 -0400107if ZEBRA
108man_MANS += zebra.8
109endif
110
Paul Jakmaca7399f2017-03-08 17:15:00 +0000111AM_MAKEINFOHTMLFLAGS = --css-include=$(srcdir)/texinfo.css
112
David Wardf027d332012-04-30 11:36:15 -0400113EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
David Ward7b0df9c2012-04-30 11:36:16 -0400114 bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
Timo Teräsb1887c82017-01-24 16:42:19 +0200115 ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
gdtf2bfdee2004-06-30 17:25:15 +0000116 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
paula47d98f2005-04-02 18:53:00 +0000117 mpls/opaque_lsa.txt mpls/ospfd.conf \
Paul Jakmae84e4d32016-02-15 14:11:06 +0000118 $(figures_sources) $(figures_png) $(figures_txt) \
Paul Jakmaca7399f2017-03-08 17:15:00 +0000119 texinfo.tex texinfo.css
paul718e3742002-12-13 20:15:29 +0000120
Andrew J. Schorr54afb652007-03-21 21:03:44 +0000121draft-zebra-00.txt: draft-zebra-00.ms
122 groff -T ascii -ms $< > $@
Paul Jakmadb2dafa2017-03-03 18:08:03 +0000123
124DISTCLEANFILES = quagga.info*
125
126# do nothing for DVI, so we don't have to generate or distribute EPS
127# figures
128dvi: # nothing