Makefile.am 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. # 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. dist_infoimage_DATA = \
  18. images/gnunet-gtk-0-10-gns-a-done.png \
  19. images/gnunet-gtk-0-10-gns-a.png \
  20. images/daemon_lego_block.png \
  21. images/gnunet-gtk-0-10-gns.png \
  22. images/gnunet-0-10-peerinfo.png \
  23. images/gnunet-gtk-0-10-identity.png \
  24. images/gnunet-fs-gtk-0-10-star-tab.png \
  25. images/gnunet-gtk-0-10-download-area.png \
  26. images/gnunet-gtk-0-10-search-selected.png \
  27. images/gnunet-gtk-0-10-fs-menu.png \
  28. images/gnunet-gtk-0-10-traffic.png \
  29. images/gnunet-gtk-0-10-fs.png \
  30. images/gnunet-namestore-gtk-phone.png \
  31. images/gnunet-gtk-0-10-fs-publish-editing.png \
  32. images/gnunet-namestore-gtk-vpn.png \
  33. images/gnunet-gtk-0-10-fs-published.png \
  34. images/gnunet-setup-exit.png \
  35. images/gnunet-gtk-0-10-fs-publish.png \
  36. images/iceweasel-preferences.png \
  37. images/gnunet-gtk-0-10-fs-publish-select.png \
  38. images/iceweasel-proxy.png \
  39. images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
  40. images/service_lego_block.png \
  41. images/gnunet-gtk-0-10-fs-publish-with-file.png \
  42. images/service_stack.png \
  43. images/gnunet-gtk-0-10-fs-search.png \
  44. images/gnunet-tutorial-service.png \
  45. images/gnunet-tutorial-system.png \
  46. images/daemon_lego_block.svg \
  47. images/lego_stack.svg \
  48. images/service_lego_block.svg \
  49. images/structure.dot \
  50. images/gns.dot \
  51. images/gns.jpg
  52. # images/$(wildcard *.png) \
  53. # images/$(wildcard *.svg)
  54. # $(DOT_FILES:%.dot=%.png)
  55. #DOT_OPTIONS = \
  56. # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  57. # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
  58. # .dot.png:
  59. # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  60. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  61. # .dot.pdf:
  62. # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  63. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  64. # .dot.eps:
  65. # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  66. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  67. # .png.eps:
  68. # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
  69. # mv "$@-tmp.eps" "$@"
  70. # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
  71. # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
  72. # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
  73. # $(top_srcdir)/%D%/images/coreutils-size-map.eps
  74. # dvi-local: ps-local
  75. info_TEXINFOS = \
  76. gnunet.texi
  77. gnunet_TEXINFOS = \
  78. chapters/developer.texi \
  79. chapters/keyconcepts.texi \
  80. chapters/preface.texi \
  81. chapters/philosophy.texi \
  82. chapters/installation.texi \
  83. chapters/user.texi \
  84. chapters/vocabulary.texi \
  85. chapters/configuration.texi \
  86. chapters/contributing.texi \
  87. fdl-1.3.texi \
  88. gpl-3.0.texi \
  89. agpl-3.0.texi \
  90. version.texi
  91. EXTRA_DIST = \
  92. $(gnunet_TEXINFOS) \
  93. htmlxref.cnf \
  94. gversion.texi \
  95. run-gendocs.sh \
  96. docstyle.css \
  97. manual.css \
  98. reset.css \
  99. style.css
  100. # $(DOT_FILES) \
  101. # $(DOT_VECTOR_GRAPHICS)
  102. DISTCLEANFILES = \
  103. gnunet.cps \
  104. chapters/developer.cps \
  105. chapters/installation.cps \
  106. chapter/philosophy.cps \
  107. chapters/user.cps \
  108. chapters/configuration.cps \
  109. chapters/terminology.cps \
  110. chapters/vocabulary.cps \
  111. fdl-1.3.cps \
  112. agpl-3.0.cps \
  113. gpl-3.0.cps
  114. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
  115. daemon_lego_block.png: images/daemon_lego_block.svg
  116. convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
  117. pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
  118. service_lego_block.png: images/service_lego_block.svg
  119. convert images/service_lego_block.svg images/service_lego_block.png &&
  120. pngcrush images/service_lego_block.png images/serivce_lego_block.png
  121. lego_stack.png: images/lego_stack.svg
  122. convert images/lego_stack.svg images/lego_stack.png &&
  123. pngcrush images/lego_stack.png images/lego_stack.png
  124. # XXX: is this sed invocation portable enough? otherwise try tr(1).
  125. version.texi/replacement: version.texi/replacement/revert
  126. @sed "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi > gversion.texi.tmp
  127. @mv gversion.texi.tmp gversion.texi
  128. version.texi/replacement/revert:
  129. @echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
  130. @echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
  131. # FIXME: rm *.html and *.pdf
  132. #doc-clean:
  133. # @rm *.aux *.log *.toc *.cp *.cps
  134. all: version.texi/replacement
  135. doc-all-install:
  136. @mkdir -p $(DESTDIR)/$(docdir)
  137. @mkdir -p $(DESTDIR)/$(infoimagedir)
  138. @mkdir -p $(DESTDIR)/$(infodir)
  139. @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
  140. @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
  141. @install gnunet.html $(DESTDIR)/$(docdir)
  142. doc-gendoc-install:
  143. @mkdir -p $(DESTDIR)/$(docdir)
  144. @cp -r manual $(DESTDIR)/$(docdir)
  145. # @cp -r images $(DESTDIR)/$(infoimagedir)
  146. dev-build: version.texi/replacement
  147. @makeinfo --pdf gnunet.texi
  148. @makeinfo --html gnunet.texi
  149. @makeinfo --no-split gnunet.texi
  150. # TODO: Add more to clean.
  151. clean: version.texi/replacement/revert
  152. @rm -f gnunet.pdf
  153. @rm -f gnunet.html
  154. @rm -f gnunet.info
  155. @rm -f gnunet.info-1
  156. @rm -f gnunet.info-2
  157. @rm -f gnunet.info-3
  158. @rm -fr gnunet.t2p
  159. @rm -fr gnunet-c-tutorial.t2p
  160. @rm -fr manual
  161. # CLEANFILES = \
  162. # gnunet.log \
  163. # gnunet-c-tutorial.log \
  164. # $(wildcard *.aux) \
  165. # $(wildcard *.toc) \
  166. # $(wildcard *.cp) \
  167. # $(wildcard *.cps)
  168. #.PHONY: version.texi
  169. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
  170. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
  171. # endif
  172. # endif
  173. # endif