blob: f58657b97ca2058db0cd3e4f75863c30230ba808 [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
37# Built from defines.texi.in
pauld9905f02005-04-05 08:04:18 +000038BUILT_SOURCES = defines.texi
paul6a22b1f2004-11-07 19:39:13 +000039
paul7190f4e2003-08-12 12:40:20 +000040info_TEXINFOS = quagga.texi
paul718e3742002-12-13 20:15:29 +000041
paulbbd938e2005-04-02 10:18:42 +000042# Have to manually specify the quagga.pdf rule in order to allow
43# us to have a generic automatic .pdf rule to build the figure sources
pauld9905f02005-04-05 08:04:18 +000044# because it cant just work from the png's directly it seems - contrary
45# to the documentation...
Paul Jakma7015b8a2011-03-30 14:30:20 +010046quagga.pdf: $(info_TEXINFOS) $(figures_pdf) $(quagga_TEXINFOS)
paul649e8532005-04-28 18:21:15 +000047 $(TEXI2PDF) -o "$@" $<
paul76b89b42004-11-06 17:13:09 +000048
Juliusz Chroboczek17398232012-02-11 14:27:16 +010049quagga_TEXINFOS = appendix.texi babeld.texi basic.texi bgpd.texi filter.texi \
50 install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
51 overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
52 snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
53 snmptrap.texi $(figures_txt)
paul6a22b1f2004-11-07 19:39:13 +000054
Jeremy Jackson4bf64612009-01-21 14:15:44 -050055.png.eps:
paulbbd938e2005-04-02 10:18:42 +000056 $(PNGTOEPS) $< "$@"
57
Jeremy Jackson4bf64612009-01-21 14:15:44 -050058.png.pdf:
Paul Jakmaab2416a2006-04-03 21:24:27 +000059 $(PNGTOPDF) $< "$@"
paul718e3742002-12-13 20:15:29 +000060
Jeremy Jackson4bf64612009-01-21 14:15:44 -050061.dia.png:
paulbbd938e2005-04-02 10:18:42 +000062 $(DIATOPNG) "$@" $<
63
David Wardf027d332012-04-30 11:36:15 -040064man_MANS =
paul718e3742002-12-13 20:15:29 +000065
David Wardf027d332012-04-30 11:36:15 -040066if BGPD
67man_MANS += bgpd.8
68endif
69
70if ISISD
71man_MANS += isisd.8
72endif
73
74if OSPF6D
75man_MANS += ospf6d.8
76endif
77
David Ward7b0df9c2012-04-30 11:36:16 -040078if OSPFCLIENT
79man_MANS += ospfclient.8
80endif
81
David Wardf027d332012-04-30 11:36:15 -040082if OSPFD
83man_MANS += ospfd.8
84endif
85
86if RIPD
87man_MANS += ripd.8
88endif
89
90if RIPNGD
91man_MANS += ripngd.8
92endif
93
94if VTYSH
95man_MANS += vtysh.1
96endif
97
David Ward7b0df9c2012-04-30 11:36:16 -040098if WATCHQUAGGA
99man_MANS += watchquagga.8
100endif
101
David Wardf027d332012-04-30 11:36:15 -0400102if ZEBRA
103man_MANS += zebra.8
104endif
105
106EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
David Ward7b0df9c2012-04-30 11:36:16 -0400107 bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
108 ripngd.8 vtysh.1 watchquagga.8 zebra.8 \
gdtf2bfdee2004-06-30 17:25:15 +0000109 mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
paula47d98f2005-04-02 18:53:00 +0000110 mpls/opaque_lsa.txt mpls/ospfd.conf \
Paul Jakmaab2416a2006-04-03 21:24:27 +0000111 $(figures_sources) $(figures_png) $(figures_txt)
paul718e3742002-12-13 20:15:29 +0000112
Andrew J. Schorr54afb652007-03-21 21:03:44 +0000113draft-zebra-00.txt: draft-zebra-00.ms
114 groff -T ascii -ms $< > $@