Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. ## Process this file with automake to produce Makefile.in.
  2. # Dia, the version i have at least, doesn't do very good EPS output
  3. # (some of the text is scaled strangely). So this will work, but
  4. # it is probably better to use something like gimp to convert the
  5. # dia exported PNG files to EPS manually.
  6. #
  7. # Here we use 'convert' from the well known 'ImageMagick' package
  8. # to do conversion from png to eps/pdf for figures.
  9. # PDF form is required for quagga.pdf, using PDFTex at least.
  10. #
  11. # TeX implementation, which we depend on already anyway.
  12. #
  13. # dia -> (dia) -> png -> (convert) -> eps -> (epstopdf) -> pdf
  14. SUFFIXES = .png .eps .dia .pdf
  15. DIATOPNG = dia -t png -e
  16. DIATOEPS = dia -t eps -e
  17. PNGTOEPS = convert -antialias -contrast -despeckle
  18. PNGTOPDF = $(PNGTOEPS)
  19. EPSTOPDF = epstopdf
  20. # The figure sources
  21. figures_names_parts = -normal-processing -rs-processing \
  22. _topologies_full _topologies_rs
  23. figures_sources = $(figures_names_parts:%=fig%.dia)
  24. figures_png = $(figures_names_parts:%=fig%.png)
  25. figures_pdf = $(figures_names_parts:%=fig%.pdf)
  26. figures_eps = $(figures_names_parts:%=fig%.eps)
  27. figures_txt = $(figures_names_parts:%=fig%.txt)
  28. # rather twisted logic because we have to build PDFs of the EPS figures for
  29. # PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we
  30. # cant rely on a single automatic rule for *.pdf, eg the one automatically
  31. # provided by automake. If you are an automake wizard, please feel free to
  32. # compact it somehow.
  33. # Built from defines.texi.in
  34. BUILT_SOURCES = defines.texi
  35. info_TEXINFOS = quagga.texi
  36. # Have to manually specify the quagga.pdf rule in order to allow
  37. # us to have a generic automatic .pdf rule to build the figure sources
  38. # because it cant just work from the png's directly it seems - contrary
  39. # to the documentation...
  40. quagga.pdf: $(info_TEXINFOS) $(figures_pdf) $(quagga_TEXINFOS)
  41. $(TEXI2PDF) -o "$@" $<
  42. quagga_TEXINFOS = appendix.texi babeld.texi basic.texi bgpd.texi filter.texi \
  43. install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
  44. overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
  45. snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
  46. snmptrap.texi $(figures_txt)
  47. .png.eps:
  48. $(PNGTOEPS) $< "$@"
  49. .png.pdf:
  50. $(PNGTOPDF) $< "$@"
  51. .dia.png:
  52. $(DIATOPNG) "$@" $<
  53. if PIMD
  54. man_MANS += pimd.8
  55. endif
  56. if BGPD
  57. man_MANS += bgpd.8
  58. endif
  59. if ISISD
  60. man_MANS += isisd.8
  61. endif
  62. if OSPF6D
  63. man_MANS += ospf6d.8
  64. endif
  65. if OSPFCLIENT
  66. man_MANS += ospfclient.8
  67. endif
  68. if OSPFD
  69. man_MANS += ospfd.8
  70. endif
  71. if RIPD
  72. man_MANS += ripd.8
  73. endif
  74. if RIPNGD
  75. man_MANS += ripngd.8
  76. endif
  77. if VTYSH
  78. man_MANS += vtysh.1
  79. endif
  80. if WATCHQUAGGA
  81. man_MANS += watchquagga.8
  82. endif
  83. if ZEBRA
  84. man_MANS += zebra.8
  85. endif
  86. EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
  87. bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
  88. ripngd.8 vtysh.1 watchquagga.8 zebra.8 \
  89. mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
  90. mpls/opaque_lsa.txt mpls/ospfd.conf \
  91. $(figures_sources) $(figures_png) $(figures_txt)
  92. draft-zebra-00.txt: draft-zebra-00.ms
  93. groff -T ascii -ms $< > $@