blob: 4520c59e935ae5eb9e9c625b95c9b6facf96fd5b [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
Paul Jakma3db7c872017-03-08 23:29:08 +000036#quagga.pdf: $(info_TEXINFOS) $(quagga_TEXINFOS)
37# $(TEXI2PDF) -o "$@" $< || true
paul718e3742002-12-13 20:15:29 +000038
Paul Jakma3db7c872017-03-08 23:29:08 +000039info_TEXINFOS = quagga.texi
paul76b89b42004-11-06 17:13:09 +000040
Paul Jakma336724d2015-05-11 15:13:31 +010041quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
Juliusz Chroboczek17398232012-02-11 14:27:16 +010042 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) \
Paul Jakma461649d2017-01-27 11:19:48 +000045 snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
46 $(figures_txt)
paul6a22b1f2004-11-07 19:39:13 +000047
Jeremy Jackson4bf64612009-01-21 14:15:44 -050048.png.eps:
paulbbd938e2005-04-02 10:18:42 +000049 $(PNGTOEPS) $< "$@"
50
Jeremy Jackson4bf64612009-01-21 14:15:44 -050051.png.pdf:
Paul Jakmaab2416a2006-04-03 21:24:27 +000052 $(PNGTOPDF) $< "$@"
paul718e3742002-12-13 20:15:29 +000053
Jeremy Jackson4bf64612009-01-21 14:15:44 -050054.dia.png:
paulbbd938e2005-04-02 10:18:42 +000055 $(DIATOPNG) "$@" $<
56
Everton Marquesff57d362014-06-25 15:54:03 -030057man_MANS =
58
Everton Marques871dbcf2009-08-11 15:43:05 -030059if PIMD
60man_MANS += pimd.8
61endif
paul718e3742002-12-13 20:15:29 +000062
David Wardf027d332012-04-30 11:36:15 -040063if BGPD
64man_MANS += bgpd.8
65endif
66
67if ISISD
68man_MANS += isisd.8
69endif
70
71if OSPF6D
72man_MANS += ospf6d.8
73endif
74
David Ward7b0df9c2012-04-30 11:36:16 -040075if OSPFCLIENT
76man_MANS += ospfclient.8
77endif
78
David Wardf027d332012-04-30 11:36:15 -040079if OSPFD
80man_MANS += ospfd.8
81endif
82
83if RIPD
84man_MANS += ripd.8
85endif
86
87if RIPNGD
88man_MANS += ripngd.8
89endif
90
Timo Teräsb1887c82017-01-24 16:42:19 +020091if NHRPD
92man_MANS += nhrpd.8
93endif
94
David Wardf027d332012-04-30 11:36:15 -040095if VTYSH
96man_MANS += vtysh.1
97endif
98
David Ward7b0df9c2012-04-30 11:36:16 -040099if WATCHQUAGGA
100man_MANS += watchquagga.8
101endif
102
David Wardf027d332012-04-30 11:36:15 -0400103if ZEBRA
104man_MANS += zebra.8
105endif
106
Paul Jakmaca7399f2017-03-08 17:15:00 +0000107AM_MAKEINFOHTMLFLAGS = --css-include=$(srcdir)/texinfo.css
108
David Wardf027d332012-04-30 11:36:15 -0400109EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
David Ward7b0df9c2012-04-30 11:36:16 -0400110 bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
Timo Teräsb1887c82017-01-24 16:42:19 +0200111 ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
gdtf2bfdee2004-06-30 17:25:15 +0000112 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
paula47d98f2005-04-02 18:53:00 +0000113 mpls/opaque_lsa.txt mpls/ospfd.conf \
Paul Jakmae84e4d32016-02-15 14:11:06 +0000114 $(figures_sources) $(figures_png) $(figures_txt) \
Paul Jakmaca7399f2017-03-08 17:15:00 +0000115 texinfo.tex texinfo.css
paul718e3742002-12-13 20:15:29 +0000116
Andrew J. Schorr54afb652007-03-21 21:03:44 +0000117draft-zebra-00.txt: draft-zebra-00.ms
118 groff -T ascii -ms $< > $@
Paul Jakmadb2dafa2017-03-03 18:08:03 +0000119
120DISTCLEANFILES = quagga.info*
121
122# do nothing for DVI, so we don't have to generate or distribute EPS
123# figures
124dvi: # nothing