blob: 85af812da30c65b7eb65fa6c526e80db6c78e84d [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
23figures_names_parts = -normal-processing -rs-processing \
24 _topologies_full _topologies_rs
Jeremy Jackson4bf64612009-01-21 14:15:44 -050025figures_sources = $(figures_names_parts:%=fig%.dia)
26figures_png = $(figures_names_parts:%=fig%.png)
27figures_pdf = $(figures_names_parts:%=fig%.pdf)
28figures_eps = $(figures_names_parts:%=fig%.eps)
29figures_txt = $(figures_names_parts:%=fig%.txt)
paulbbd938e2005-04-02 10:18:42 +000030
31# rather twisted logic because we have to build PDFs of the EPS figures for
32# PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we
33# cant rely on a single automatic rule for *.pdf, eg the one automatically
34# provided by automake. If you are an automake wizard, please feel free to
35# compact it somehow.
paul6a22b1f2004-11-07 19:39:13 +000036
paul7190f4e2003-08-12 12:40:20 +000037info_TEXINFOS = quagga.texi
paul718e3742002-12-13 20:15:29 +000038
paulbbd938e2005-04-02 10:18:42 +000039# Have to manually specify the quagga.pdf rule in order to allow
40# us to have a generic automatic .pdf rule to build the figure sources
pauld9905f02005-04-05 08:04:18 +000041# because it cant just work from the png's directly it seems - contrary
42# to the documentation...
Paul Jakma7015b8a2011-03-30 14:30:20 +010043quagga.pdf: $(info_TEXINFOS) $(figures_pdf) $(quagga_TEXINFOS)
David Lamparterf16195c2014-11-28 08:40:58 +010044 $(TEXI2PDF) -o "$@" $< || true
paul76b89b42004-11-06 17:13:09 +000045
Paul Jakma336724d2015-05-11 15:13:31 +010046quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
Juliusz Chroboczek17398232012-02-11 14:27:16 +010047 install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
48 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
49 snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
Paul Jakma461649d2017-01-27 11:19:48 +000050 snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
51 $(figures_txt)
paul6a22b1f2004-11-07 19:39:13 +000052
Jeremy Jackson4bf64612009-01-21 14:15:44 -050053.png.eps:
paulbbd938e2005-04-02 10:18:42 +000054 $(PNGTOEPS) $< "$@"
55
Jeremy Jackson4bf64612009-01-21 14:15:44 -050056.png.pdf:
Paul Jakmaab2416a2006-04-03 21:24:27 +000057 $(PNGTOPDF) $< "$@"
paul718e3742002-12-13 20:15:29 +000058
Jeremy Jackson4bf64612009-01-21 14:15:44 -050059.dia.png:
paulbbd938e2005-04-02 10:18:42 +000060 $(DIATOPNG) "$@" $<
61
Everton Marquesff57d362014-06-25 15:54:03 -030062man_MANS =
63
Everton Marques871dbcf2009-08-11 15:43:05 -030064if PIMD
65man_MANS += pimd.8
66endif
paul718e3742002-12-13 20:15:29 +000067
David Wardf027d332012-04-30 11:36:15 -040068if BGPD
69man_MANS += bgpd.8
70endif
71
72if ISISD
73man_MANS += isisd.8
74endif
75
76if OSPF6D
77man_MANS += ospf6d.8
78endif
79
David Ward7b0df9c2012-04-30 11:36:16 -040080if OSPFCLIENT
81man_MANS += ospfclient.8
82endif
83
David Wardf027d332012-04-30 11:36:15 -040084if OSPFD
85man_MANS += ospfd.8
86endif
87
88if RIPD
89man_MANS += ripd.8
90endif
91
92if RIPNGD
93man_MANS += ripngd.8
94endif
95
Timo Teräsb1887c82017-01-24 16:42:19 +020096if NHRPD
97man_MANS += nhrpd.8
98endif
99
David Wardf027d332012-04-30 11:36:15 -0400100if VTYSH
101man_MANS += vtysh.1
102endif
103
David Ward7b0df9c2012-04-30 11:36:16 -0400104if WATCHQUAGGA
105man_MANS += watchquagga.8
106endif
107
David Wardf027d332012-04-30 11:36:15 -0400108if ZEBRA
109man_MANS += zebra.8
110endif
111
112EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
David Ward7b0df9c2012-04-30 11:36:16 -0400113 bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
Timo Teräsb1887c82017-01-24 16:42:19 +0200114 ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
gdtf2bfdee2004-06-30 17:25:15 +0000115 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
paula47d98f2005-04-02 18:53:00 +0000116 mpls/opaque_lsa.txt mpls/ospfd.conf \
Paul Jakmae84e4d32016-02-15 14:11:06 +0000117 $(figures_sources) $(figures_png) $(figures_txt) \
118 texinfo.tex
paul718e3742002-12-13 20:15:29 +0000119
Andrew J. Schorr54afb652007-03-21 21:03:44 +0000120draft-zebra-00.txt: draft-zebra-00.ms
121 groff -T ascii -ms $< > $@
Paul Jakmadb2dafa2017-03-03 18:08:03 +0000122
123DISTCLEANFILES = quagga.info*
124
125# do nothing for DVI, so we don't have to generate or distribute EPS
126# figures
127dvi: # nothing