Makefile.am 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # This Makefile.am is in the public domain
  2. docdir = $(datadir)/doc/gnunet/
  3. #DOT_FILES = images/$(wildcard *.dot)
  4. #DOT_VECTOR_GRAPHICS = \
  5. # $(DOT_FILES:%.dot=%.eps) \
  6. # $(DOT_FILES:%.dot=%.pdf)
  7. if ACTIVATE_TEXINFO4
  8. # NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
  9. # makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
  10. # base) does only support --css-include=FILE.
  11. # The only difference is a shorter html output and
  12. # in 6.5 the ability to use refs instead of include.
  13. # We prefer not to break builds in this case, so
  14. # we use the include version which is backwards compatible
  15. # and upwards compatible, while the ref variant is neither.
  16. AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
  17. else
  18. # In the 5.x version they added `--split=chapters|sections` in
  19. # addition to `--split=nodes`.
  20. # Hold on to your hats: In version 6.5 this is already removed, ffs.
  21. # GNU Texinfo, please be more consistent than 1 version in switches.
  22. # This however is compatible to version 5.2. Thanks, I hate it.
  23. # AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
  24. AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
  25. endif
  26. #DOT_OPTIONS = \
  27. # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  28. # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
  29. # .dot.png:
  30. # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  31. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  32. # .dot.pdf:
  33. # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  34. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  35. # .dot.eps:
  36. # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  37. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  38. # .png.eps:
  39. # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
  40. # mv "$@-tmp.eps" "$@"
  41. # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
  42. # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
  43. # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
  44. # $(top_srcdir)/%D%/images/coreutils-size-map.eps
  45. # dvi-local: ps-local
  46. gnunet_tutorial_examples = \
  47. examples/001.c \
  48. examples/002.c \
  49. examples/003.c \
  50. examples/004.c \
  51. examples/005.c \
  52. examples/006.c \
  53. examples/007.c \
  54. examples/008.c \
  55. examples/009.c \
  56. examples/010.c \
  57. examples/011.c \
  58. examples/012.c \
  59. examples/013.c \
  60. examples/013.1.c \
  61. examples/014.c \
  62. examples/015.c \
  63. examples/016.c \
  64. examples/017.c \
  65. examples/018.c \
  66. examples/019.c \
  67. examples/020.c \
  68. examples/021.c \
  69. examples/022.c \
  70. examples/023.c \
  71. examples/024.c \
  72. examples/025.Makefile.am \
  73. examples/026.c \
  74. examples/testbed_test.c
  75. info_TEXINFOS = \
  76. gnunet-tutorial.texi
  77. EXTRA_DIST = \
  78. $(gnunet_tutorial_examples) \
  79. htmlxref.cnf \
  80. run-gendocs.sh \
  81. docstyle.css \
  82. manual.css \
  83. reset.css \
  84. style.css
  85. DISTCLEANFILES = \
  86. gnunet-tutorial.cps \
  87. fdl-1.3.cps
  88. # XXX: is this sed invocation portable enough? otherwise try tr(1).
  89. version.texi/replacement: version.texi/replacement/revert
  90. @sed "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi > gversion.texi.tmp
  91. @mv gversion.texi.tmp gversion.texi
  92. version.texi/replacement/revert:
  93. @echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
  94. @echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
  95. # FIXME: rm *.html and *.pdf
  96. #doc-clean:
  97. # @rm *.aux *.log *.toc *.cp *.cps
  98. all: version.texi/replacement
  99. doc-all-install:
  100. @mkdir -p $(DESTDIR)/$(docdir)
  101. @mkdir -p $(DESTDIR)/$(infoimagedir)
  102. @mkdir -p $(DESTDIR)/$(infodir)
  103. @install -m 0755 gnunet-tutorial.pdf $(DESTDIR)/$(docdir)
  104. @install -m 0755 gnunet-tutorial.info $(DESTDIR)/$(infodir)
  105. @install gnunet-tutorial.html $(DESTDIR)/$(docdir)
  106. doc-gendoc-install:
  107. @mkdir -p $(DESTDIR)/$(docdir)
  108. @cp -r manual $(DESTDIR)/$(docdir)
  109. # @cp -r images $(DESTDIR)/$(infoimagedir)
  110. dev-build: version.texi/replacement
  111. @makeinfo --pdf gnunet-c-tutorial.texi
  112. @makeinfo --html gnunet-c-tutorial.texi
  113. @makeinfo --no-split gnunet-c-tutorial.texi
  114. # TODO: Add more to clean.
  115. clean: version.texi/replacement/revert
  116. @rm -f gnunet-tutorial.pdf
  117. @rm -f gnunet-tutorial.info
  118. @rm -rf gnunet-tutorial.html
  119. @rm -fr gnunet-tutorial.t2p
  120. # CLEANFILES = \
  121. # gnunet.log \
  122. # gnunet-c-tutorial.log \
  123. # $(wildcard *.aux) \
  124. # $(wildcard *.toc) \
  125. # $(wildcard *.cp) \
  126. # $(wildcard *.cps)
  127. #.PHONY: version.texi
  128. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
  129. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
  130. # endif
  131. # endif
  132. # endif