Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. figures_sources = $(figures_names_parts:%=fig%.dia)
  23. figures_png = $(figures_names_parts:%=fig%.png)
  24. figures_pdf = $(figures_names_parts:%=fig%.pdf)
  25. figures_eps = $(figures_names_parts:%=fig%.eps)
  26. figures_txt = $(figures_names_parts:%=fig%.txt)
  27. # rather twisted logic because we have to build PDFs of the EPS figures for
  28. # PDFTex and yet build one PDF, quagga.pdf, from texi source. Which means we
  29. # cant rely on a single automatic rule for *.pdf, eg the one automatically
  30. # provided by automake. If you are an automake wizard, please feel free to
  31. # compact it somehow.
  32. #quagga.pdf: $(info_TEXINFOS) $(quagga_TEXINFOS)
  33. # $(TEXI2PDF) -o "$@" $< || true
  34. info_TEXINFOS = quagga.texi
  35. quagga_TEXINFOS = appendix.texi basic.texi bgpd.texi filter.texi \
  36. install.texi ipv6.texi kernel.texi main.texi ospf6d.texi ospfd.texi \
  37. overview.texi protocol.texi ripd.texi ripngd.texi routemap.texi \
  38. snmp.texi vtysh.texi routeserver.texi defines.texi $(figures_png) \
  39. snmptrap.texi ospf_fundamentals.texi isisd.texi nhrpd.texi \
  40. $(figures_txt)
  41. .png.eps:
  42. $(PNGTOEPS) $< "$@"
  43. .png.pdf:
  44. $(PNGTOPDF) $< "$@"
  45. .dia.png:
  46. $(DIATOPNG) "$@" $<
  47. man_MANS =
  48. if PIMD
  49. man_MANS += pimd.8
  50. endif
  51. if BGPD
  52. man_MANS += bgpd.8
  53. endif
  54. if ISISD
  55. man_MANS += isisd.8
  56. endif
  57. if OSPF6D
  58. man_MANS += ospf6d.8
  59. endif
  60. if OSPFCLIENT
  61. man_MANS += ospfclient.8
  62. endif
  63. if OSPFD
  64. man_MANS += ospfd.8
  65. endif
  66. if RIPD
  67. man_MANS += ripd.8
  68. endif
  69. if RIPNGD
  70. man_MANS += ripngd.8
  71. endif
  72. if NHRPD
  73. man_MANS += nhrpd.8
  74. endif
  75. if VTYSH
  76. man_MANS += vtysh.1
  77. endif
  78. if WATCHQUAGGA
  79. man_MANS += watchquagga.8
  80. endif
  81. if ZEBRA
  82. man_MANS += zebra.8
  83. endif
  84. AM_MAKEINFOHTMLFLAGS = --css-include=$(srcdir)/texinfo.css
  85. EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
  86. bgpd.8 isisd.8 ospf6d.8 ospfclient.8 ospfd.8 ripd.8 \
  87. ripngd.8 nhrpd.8 pimd.8 vtysh.1 watchquagga.8 zebra.8 \
  88. mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
  89. mpls/opaque_lsa.txt mpls/ospfd.conf \
  90. $(figures_sources) $(figures_png) $(figures_txt) \
  91. texinfo.tex texinfo.css
  92. draft-zebra-00.txt: draft-zebra-00.ms
  93. groff -T ascii -ms $< > $@
  94. CLEANFILES = *.{fn,fns,cp,cps,ky,kys}
  95. DISTCLEANFILES = quagga.info*
  96. # do nothing for DVI, so we don't have to generate or distribute EPS
  97. # figures
  98. dvi: # nothing