Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. info_TEXINFOS = quagga.texi
  34. # Have to manually specify the quagga.pdf rule in order to allow
  35. # us to have a generic automatic .pdf rule to build the figure sources
  36. # because it cant just work from the png's directly it seems - contrary
  37. # to the documentation...
  38. quagga.pdf: $(info_TEXINFOS) $(figures_pdf) $(quagga_TEXINFOS)
  39. $(TEXI2PDF) -o "$@" $< || true
  40. quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
  41. install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
  42. overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
  43. snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
  44. snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
  45. $(figures_txt)
  46. .png.eps:
  47. $(PNGTOEPS) $< "$@"
  48. .png.pdf:
  49. $(PNGTOPDF) $< "$@"
  50. .dia.png:
  51. $(DIATOPNG) "$@" $<
  52. man_MANS =
  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 NHRPD
  78. man_MANS += nhrpd.8
  79. endif
  80. if VTYSH
  81. man_MANS += vtysh.1
  82. endif
  83. if WATCHQUAGGA
  84. man_MANS += watchquagga.8
  85. endif
  86. if ZEBRA
  87. man_MANS += zebra.8
  88. endif
  89. EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
  90. bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
  91. ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
  92. mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
  93. mpls/opaque_lsa.txt mpls/ospfd.conf \
  94. $(figures_sources) $(figures_png) $(figures_txt) \
  95. texinfo.tex
  96. draft-zebra-00.txt: draft-zebra-00.ms
  97. groff -T ascii -ms $< > $@