paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in. |
| 2 | |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 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. |
| 7 | # |
| 8 | # Here we use 'convert' from the well known 'ImageMagick' package |
Paul Jakma | ab2416a | 2006-04-03 21:24:27 +0000 | [diff] [blame] | 9 | # to do conversion from png to eps/pdf for figures. |
| 10 | # PDF form is required for quagga.pdf, using PDFTex at least. |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 11 | # |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 12 | # TeX implementation, which we depend on already anyway. |
| 13 | # |
| 14 | # dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf |
Jeremy Jackson | 4bf6461 | 2009-01-21 14:15:44 -0500 | [diff] [blame] | 15 | SUFFIXES = .png .eps .dia .pdf |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 16 | DIATOPNG = dia -t png -e |
| 17 | DIATOEPS = dia -t eps -e |
Paul Jakma | 5bc52c7 | 2009-06-22 16:11:06 +0100 | [diff] [blame] | 18 | PNGTOEPS = convert -antialias -contrast -despeckle |
Paul Jakma | ab2416a | 2006-04-03 21:24:27 +0000 | [diff] [blame] | 19 | PNGTOPDF = $(PNGTOEPS) |
paul | 6a22b1f | 2004-11-07 19:39:13 +0000 | [diff] [blame] | 20 | EPSTOPDF = epstopdf |
| 21 | |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 22 | # The figure sources |
| 23 | figures_names_parts = -normal-processing -rs-processing \ |
| 24 | _topologies_full _topologies_rs |
Jeremy Jackson | 4bf6461 | 2009-01-21 14:15:44 -0500 | [diff] [blame] | 25 | figures_sources = $(figures_names_parts:%=fig%.dia) |
| 26 | figures_png = $(figures_names_parts:%=fig%.png) |
| 27 | figures_pdf = $(figures_names_parts:%=fig%.pdf) |
| 28 | figures_eps = $(figures_names_parts:%=fig%.eps) |
| 29 | figures_txt = $(figures_names_parts:%=fig%.txt) |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 30 | |
| 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. |
paul | 6a22b1f | 2004-11-07 19:39:13 +0000 | [diff] [blame] | 36 | |
paul | 7190f4e | 2003-08-12 12:40:20 +0000 | [diff] [blame] | 37 | info_TEXINFOS = quagga.texi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 38 | |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 39 | # 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 |
paul | d9905f0 | 2005-04-05 08:04:18 +0000 | [diff] [blame] | 41 | # because it cant just work from the png's directly it seems - contrary |
| 42 | # to the documentation... |
Paul Jakma | 69c6298 | 2017-03-08 21:54:09 +0000 | [diff] [blame] | 43 | quagga.pdf: $(info_TEXINFOS) $(quagga_TEXINFOS) |
David Lamparter | f16195c | 2014-11-28 08:40:58 +0100 | [diff] [blame] | 44 | $(TEXI2PDF) -o "$@" $< || true |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 45 | |
Paul Jakma | 336724d | 2015-05-11 15:13:31 +0100 | [diff] [blame] | 46 | quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \ |
Juliusz Chroboczek | 1739823 | 2012-02-11 14:27:16 +0100 | [diff] [blame] | 47 | 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 Jakma | 461649d | 2017-01-27 11:19:48 +0000 | [diff] [blame] | 50 | snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \ |
| 51 | $(figures_txt) |
paul | 6a22b1f | 2004-11-07 19:39:13 +0000 | [diff] [blame] | 52 | |
Jeremy Jackson | 4bf6461 | 2009-01-21 14:15:44 -0500 | [diff] [blame] | 53 | .png.eps: |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 54 | $(PNGTOEPS) $< "$@" |
| 55 | |
Jeremy Jackson | 4bf6461 | 2009-01-21 14:15:44 -0500 | [diff] [blame] | 56 | .png.pdf: |
Paul Jakma | ab2416a | 2006-04-03 21:24:27 +0000 | [diff] [blame] | 57 | $(PNGTOPDF) $< "$@" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 58 | |
Jeremy Jackson | 4bf6461 | 2009-01-21 14:15:44 -0500 | [diff] [blame] | 59 | .dia.png: |
paul | bbd938e | 2005-04-02 10:18:42 +0000 | [diff] [blame] | 60 | $(DIATOPNG) "$@" $< |
| 61 | |
Everton Marques | ff57d36 | 2014-06-25 15:54:03 -0300 | [diff] [blame] | 62 | man_MANS = |
| 63 | |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 64 | if PIMD |
| 65 | man_MANS += pimd.8 |
| 66 | endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 67 | |
David Ward | f027d33 | 2012-04-30 11:36:15 -0400 | [diff] [blame] | 68 | if BGPD |
| 69 | man_MANS += bgpd.8 |
| 70 | endif |
| 71 | |
| 72 | if ISISD |
| 73 | man_MANS += isisd.8 |
| 74 | endif |
| 75 | |
| 76 | if OSPF6D |
| 77 | man_MANS += ospf6d.8 |
| 78 | endif |
| 79 | |
David Ward | 7b0df9c | 2012-04-30 11:36:16 -0400 | [diff] [blame] | 80 | if OSPFCLIENT |
| 81 | man_MANS += ospfclient.8 |
| 82 | endif |
| 83 | |
David Ward | f027d33 | 2012-04-30 11:36:15 -0400 | [diff] [blame] | 84 | if OSPFD |
| 85 | man_MANS += ospfd.8 |
| 86 | endif |
| 87 | |
| 88 | if RIPD |
| 89 | man_MANS += ripd.8 |
| 90 | endif |
| 91 | |
| 92 | if RIPNGD |
| 93 | man_MANS += ripngd.8 |
| 94 | endif |
| 95 | |
Timo Teräs | b1887c8 | 2017-01-24 16:42:19 +0200 | [diff] [blame] | 96 | if NHRPD |
| 97 | man_MANS += nhrpd.8 |
| 98 | endif |
| 99 | |
David Ward | f027d33 | 2012-04-30 11:36:15 -0400 | [diff] [blame] | 100 | if VTYSH |
| 101 | man_MANS += vtysh.1 |
| 102 | endif |
| 103 | |
David Ward | 7b0df9c | 2012-04-30 11:36:16 -0400 | [diff] [blame] | 104 | if WATCHQUAGGA |
| 105 | man_MANS += watchquagga.8 |
| 106 | endif |
| 107 | |
David Ward | f027d33 | 2012-04-30 11:36:15 -0400 | [diff] [blame] | 108 | if ZEBRA |
| 109 | man_MANS += zebra.8 |
| 110 | endif |
| 111 | |
Paul Jakma | ca7399f | 2017-03-08 17:15:00 +0000 | [diff] [blame] | 112 | AM_MAKEINFOHTMLFLAGS = --css-include=$(srcdir)/texinfo.css |
| 113 | |
David Ward | f027d33 | 2012-04-30 11:36:15 -0400 | [diff] [blame] | 114 | EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \ |
David Ward | 7b0df9c | 2012-04-30 11:36:16 -0400 | [diff] [blame] | 115 | bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \ |
Timo Teräs | b1887c8 | 2017-01-24 16:42:19 +0200 | [diff] [blame] | 116 | ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \ |
gdt | f2bfdee | 2004-06-30 17:25:15 +0000 | [diff] [blame] | 117 | mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \ |
paul | a47d98f | 2005-04-02 18:53:00 +0000 | [diff] [blame] | 118 | mpls/opaque_lsa.txt mpls/ospfd.conf \ |
Paul Jakma | e84e4d3 | 2016-02-15 14:11:06 +0000 | [diff] [blame] | 119 | $(figures_sources) $(figures_png) $(figures_txt) \ |
Paul Jakma | ca7399f | 2017-03-08 17:15:00 +0000 | [diff] [blame] | 120 | texinfo.tex texinfo.css |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 121 | |
Andrew J. Schorr | 54afb65 | 2007-03-21 21:03:44 +0000 | [diff] [blame] | 122 | draft-zebra-00.txt: draft-zebra-00.ms |
| 123 | groff -T ascii -ms $< > $@ |
Paul Jakma | db2dafa | 2017-03-03 18:08:03 +0000 | [diff] [blame] | 124 | |
| 125 | DISTCLEANFILES = quagga.info* |
| 126 | |
| 127 | # do nothing for DVI, so we don't have to generate or distribute EPS |
| 128 | # figures |
| 129 | dvi: # nothing |