Makefile.am 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # This Makefile.am is in the public domain
  2. docdir = $(datadir)/doc/gnunet/
  3. infoimagedir = $(infodir)/images
  4. #DOT_FILES = images/$(wildcard *.dot)
  5. #DOT_VECTOR_GRAPHICS = \
  6. # $(DOT_FILES:%.dot=%.eps) \
  7. # $(DOT_FILES:%.dot=%.pdf)
  8. if ACTIVATE_TEXINFO4
  9. # NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
  10. # makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
  11. # base) does only support --css-include=FILE.
  12. # The only difference is a shorter html output and
  13. # in 6.5 the ability to use refs instead of include.
  14. # We prefer not to break builds in this case, so
  15. # we use the include version which is backwards compatible
  16. # and upwards compatible, while the ref variant is neither.
  17. AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
  18. else
  19. # In the 5.x version they added `--split=chapters|sections` in
  20. # addition to `--split=nodes`.
  21. # Hold on to your hats: In version 6.5 this is already removed, ffs.
  22. # GNU Texinfo, please be more consistent than 1 version in switches.
  23. # This however is compatible to version 5.2. Thanks, I hate it.
  24. # AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
  25. AM_MAKEINFOHTMLFLAGS = --no-split --css-ref="../style.css" --css-ref="../manual.css"
  26. endif
  27. dist_infoimage_DATA = \
  28. images/gnunet-gtk-0-10-gns-a-done.png \
  29. images/gnunet-gtk-0-10-gns-a.png \
  30. images/daemon_lego_block.png \
  31. images/gnunet-gtk-0-10-gns.png \
  32. images/gnunet-0-10-peerinfo.png \
  33. images/gnunet-gtk-0-10-identity.png \
  34. images/gnunet-fs-gtk-0-10-star-tab.png \
  35. images/gnunet-gtk-0-10-download-area.png \
  36. images/gnunet-gtk-0-10-search-selected.png \
  37. images/gnunet-gtk-0-10-fs-menu.png \
  38. images/gnunet-gtk-0-10-traffic.png \
  39. images/gnunet-gtk-0-10-fs.png \
  40. images/gnunet-namestore-gtk-phone.png \
  41. images/gnunet-gtk-0-10-fs-publish-editing.png \
  42. images/gnunet-namestore-gtk-vpn.png \
  43. images/gnunet-gtk-0-10-fs-published.png \
  44. images/gnunet-setup-exit.png \
  45. images/gnunet-gtk-0-10-fs-publish.png \
  46. images/iceweasel-preferences.png \
  47. images/gnunet-gtk-0-10-fs-publish-select.png \
  48. images/iceweasel-proxy.png \
  49. images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
  50. images/service_lego_block.png \
  51. images/gnunet-gtk-0-10-fs-publish-with-file.png \
  52. images/service_stack.png \
  53. images/gnunet-gtk-0-10-fs-search.png \
  54. images/gnunet-tutorial-service.png \
  55. images/gnunet-tutorial-system.png \
  56. images/daemon_lego_block.svg \
  57. images/lego_stack.svg \
  58. images/service_lego_block.svg \
  59. images/structure.dot \
  60. images/gns.dot \
  61. images/gns.jpg
  62. # images/$(wildcard *.png) \
  63. # images/$(wildcard *.svg)
  64. # $(DOT_FILES:%.dot=%.png)
  65. #DOT_OPTIONS = \
  66. # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  67. # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
  68. # .dot.png:
  69. # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  70. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  71. # .dot.pdf:
  72. # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  73. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  74. # .dot.eps:
  75. # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  76. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  77. # .png.eps:
  78. # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
  79. # mv "$@-tmp.eps" "$@"
  80. # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
  81. # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
  82. # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
  83. # $(top_srcdir)/%D%/images/coreutils-size-map.eps
  84. # dvi-local: ps-local
  85. info_TEXINFOS = \
  86. gnunet.texi
  87. gnunet_TEXINFOS = \
  88. chapters/developer.texi \
  89. chapters/keyconcepts.texi \
  90. chapters/preface.texi \
  91. chapters/philosophy.texi \
  92. chapters/installation.texi \
  93. chapters/user.texi \
  94. chapters/vocabulary.texi \
  95. chapters/configuration.texi \
  96. chapters/contributing.texi \
  97. fdl-1.3.texi \
  98. gpl-3.0.texi \
  99. agpl-3.0.texi \
  100. version.texi
  101. EXTRA_DIST = \
  102. $(gnunet_TEXINFOS) \
  103. htmlxref.cnf \
  104. gversion.texi \
  105. run-gendocs.sh \
  106. docstyle.css \
  107. manual.css \
  108. reset.css \
  109. style.css
  110. # $(DOT_FILES) \
  111. # $(DOT_VECTOR_GRAPHICS)
  112. DISTCLEANFILES = \
  113. gnunet.cps \
  114. chapters/developer.cps \
  115. chapters/installation.cps \
  116. chapter/philosophy.cps \
  117. chapters/user.cps \
  118. chapters/configuration.cps \
  119. chapters/terminology.cps \
  120. chapters/vocabulary.cps \
  121. fdl-1.3.cps \
  122. agpl-3.0.cps \
  123. gpl-3.0.cps
  124. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
  125. daemon_lego_block.png: images/daemon_lego_block.svg
  126. convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
  127. pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
  128. service_lego_block.png: images/service_lego_block.svg
  129. convert images/service_lego_block.svg images/service_lego_block.png &&
  130. pngcrush images/service_lego_block.png images/serivce_lego_block.png
  131. lego_stack.png: images/lego_stack.svg
  132. convert images/lego_stack.svg images/lego_stack.png &&
  133. pngcrush images/lego_stack.png images/lego_stack.png
  134. # XXX: is this sed invocation portable enough? otherwise try tr(1).
  135. version.texi/replacement: version.texi/replacement/revert
  136. @sed "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi > gversion.texi.tmp
  137. @mv gversion.texi.tmp gversion.texi
  138. version.texi/replacement/revert:
  139. @echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
  140. @echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
  141. # FIXME: rm *.html and *.pdf
  142. #doc-clean:
  143. # @rm *.aux *.log *.toc *.cp *.cps
  144. all: version.texi/replacement
  145. doc-all-install:
  146. @mkdir -p $(DESTDIR)/$(docdir)
  147. @mkdir -p $(DESTDIR)/$(infoimagedir)
  148. @mkdir -p $(DESTDIR)/$(infodir)
  149. @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
  150. @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
  151. @install gnunet.html $(DESTDIR)/$(docdir)
  152. doc-gendoc-install:
  153. @mkdir -p $(DESTDIR)/$(docdir)
  154. @cp -r manual $(DESTDIR)/$(docdir)
  155. # @cp -r images $(DESTDIR)/$(infoimagedir)
  156. dev-build: version.texi/replacement
  157. @makeinfo --pdf gnunet.texi
  158. @makeinfo --html gnunet.texi
  159. @makeinfo --no-split gnunet.texi
  160. # TODO: Add more to clean.
  161. clean: version.texi/replacement/revert
  162. @rm -f gnunet.pdf
  163. @rm -rf gnunet.html
  164. @rm -f gnunet.info
  165. @rm -f gnunet.info-1
  166. @rm -f gnunet.info-2
  167. @rm -f gnunet.info-3
  168. @rm -fr gnunet.t2p
  169. @rm -fr gnunet-c-tutorial.t2p
  170. @rm -fr manual
  171. # CLEANFILES = \
  172. # gnunet.log \
  173. # gnunet-c-tutorial.log \
  174. # $(wildcard *.aux) \
  175. # $(wildcard *.toc) \
  176. # $(wildcard *.cp) \
  177. # $(wildcard *.cps)
  178. #.PHONY: version.texi
  179. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
  180. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
  181. # endif
  182. # endif
  183. # endif