Makefile.am 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css
  9. dist_infoimage_DATA = \
  10. images/gnunet-gtk-0-10-gns-a-done.png \
  11. images/gnunet-gtk-0-10-gns-a.png \
  12. images/daemon_lego_block.png \
  13. images/gnunet-gtk-0-10-gns.png \
  14. images/gnunet-0-10-peerinfo.png \
  15. images/gnunet-gtk-0-10-identity.png \
  16. images/gnunet-fs-gtk-0-10-star-tab.png \
  17. images/gnunet-gtk-0-10-download-area.png \
  18. images/gnunet-gtk-0-10-search-selected.png \
  19. images/gnunet-gtk-0-10-fs-menu.png \
  20. images/gnunet-gtk-0-10-traffic.png \
  21. images/gnunet-gtk-0-10-fs.png \
  22. images/gnunet-namestore-gtk-phone.png \
  23. images/gnunet-gtk-0-10-fs-publish-editing.png \
  24. images/gnunet-namestore-gtk-vpn.png \
  25. images/gnunet-gtk-0-10-fs-published.png \
  26. images/gnunet-setup-exit.png \
  27. images/gnunet-gtk-0-10-fs-publish.png \
  28. images/iceweasel-preferences.png \
  29. images/gnunet-gtk-0-10-fs-publish-select.png \
  30. images/iceweasel-proxy.png \
  31. images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
  32. images/service_lego_block.png \
  33. images/gnunet-gtk-0-10-fs-publish-with-file.png \
  34. images/service_stack.png \
  35. images/gnunet-gtk-0-10-fs-search.png \
  36. images/gnunet-tutorial-service.png \
  37. images/gnunet-tutorial-system.png \
  38. images/daemon_lego_block.svg \
  39. images/lego_stack.svg \
  40. images/service_lego_block.svg \
  41. images/structure.dot \
  42. images/gns.dot
  43. # images/$(wildcard *.png) \
  44. # images/$(wildcard *.svg)
  45. # $(DOT_FILES:%.dot=%.png)
  46. #DOT_OPTIONS = \
  47. # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
  48. # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
  49. # .dot.png:
  50. # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  51. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  52. # .dot.pdf:
  53. # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  54. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  55. # .dot.eps:
  56. # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
  57. # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
  58. # .png.eps:
  59. # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
  60. # mv "$@-tmp.eps" "$@"
  61. # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
  62. # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
  63. # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
  64. # $(top_srcdir)/%D%/images/coreutils-size-map.eps
  65. # dvi-local: ps-local
  66. gnunet_tutorial_examples = \
  67. tutorial-examples/001.c \
  68. tutorial-examples/002.c \
  69. tutorial-examples/003.c \
  70. tutorial-examples/004.c \
  71. tutorial-examples/005.c \
  72. tutorial-examples/006.c \
  73. tutorial-examples/007.c \
  74. tutorial-examples/008.c \
  75. tutorial-examples/009.c \
  76. tutorial-examples/010.c \
  77. tutorial-examples/011.c \
  78. tutorial-examples/012.c \
  79. tutorial-examples/013.c \
  80. tutorial-examples/013.1.c \
  81. tutorial-examples/014.c \
  82. tutorial-examples/015.c \
  83. tutorial-examples/016.c \
  84. tutorial-examples/017.c \
  85. tutorial-examples/018.c \
  86. tutorial-examples/019.c \
  87. tutorial-examples/020.c \
  88. tutorial-examples/021.c \
  89. tutorial-examples/022.c \
  90. tutorial-examples/023.c \
  91. tutorial-examples/024.c \
  92. tutorial-examples/025.c \
  93. tutorial-examples/026.c
  94. info_TEXINFOS = \
  95. gnunet.texi \
  96. gnunet-c-tutorial.texi
  97. gnunet_TEXINFOS = \
  98. chapters/developer.texi \
  99. chapters/preface.texi \
  100. chapters/installation.texi \
  101. chapters/philosophy.texi \
  102. chapters/user.texi \
  103. chapters/vocabulary.texi \
  104. chapters/configuration.texi \
  105. chapters/contributing.texi \
  106. fdl-1.3.texi \
  107. gpl-3.0.texi
  108. EXTRA_DIST = \
  109. $(gnunet_TEXINFOS) \
  110. $(gnunet_tutorial_examples) \
  111. htmlxref.cnf \
  112. run-gendocs.sh \
  113. docstyle.css
  114. # $(DOT_FILES) \
  115. # $(DOT_VECTOR_GRAPHICS)
  116. DISTCLEANFILES = \
  117. gnunet.cps \
  118. gnunet-c-tutorial.cps \
  119. chapters/developer.cps \
  120. chapters/installation.cps \
  121. chapter/philosophy.cps \
  122. chapters/user.cps \
  123. chapters/configuration.cps \
  124. chapters/terminology.cps \
  125. chapters/vocabulary.cps \
  126. fdl-1.3.cps \
  127. gpl-3.0.cps
  128. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
  129. daemon_lego_block.png: images/daemon_lego_block.svg
  130. convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
  131. pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
  132. service_lego_block.png: images/service_lego_block.svg
  133. convert images/service_lego_block.svg images/service_lego_block.png &&
  134. pngcrush images/service_lego_block.png images/serivce_lego_block.png
  135. lego_stack.png: images/lego_stack.svg
  136. convert images/lego_stack.svg images/lego_stack.png &&
  137. pngcrush images/lego_stack.png images/lego_stack.png
  138. # FIXME: The usage of 'date' strings causes a warning.
  139. # version.texi:
  140. # echo "@set UPDATED $(date +'%d %B %Y')" > $@
  141. # echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
  142. # echo "@set EDITION $(PACKAGE_VERSION)" >> $@
  143. # echo "@set VERSION $(PACKAGE_VERSION)" >> $@
  144. # Workaround for makeinfo error. Whcih in turn introduces more
  145. # date-related 'warnings'. Well.
  146. version2.texi:
  147. echo "@set UPDATED $(date +'%d %B %Y')" > $@
  148. echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
  149. echo "@set EDITION $(PACKAGE_VERSION)" >> $@
  150. echo "@set VERSION $(PACKAGE_VERSION)" >> $@
  151. # FIXME: rm *.html and *.pdf
  152. #doc-clean:
  153. # @rm *.aux *.log *.toc *.cp *.cps
  154. doc-all-install:
  155. @mkdir -p $(DESTDIR)/$(docdir)
  156. @mkdir -p $(DESTDIR)/$(infoimagedir)
  157. @mkdir -p $(DESTDIR)/$(infodir)
  158. @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
  159. @install -m 0755 gnunet-c-tutorial.pdf $(DESTDIR)/$(docdir)
  160. @install -m 0755 gnunet-c-tutorial.info $(DESTDIR)/$(infodir)
  161. @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
  162. @install gnunet.html $(DESTDIR)/$(docdir)
  163. @install gnunet-c-tutorial.html $(DESTDIR)/$(docdir)
  164. doc-gendoc-install:
  165. @mkdir -p $(DESTDIR)/$(docdir)
  166. @cp -r manual $(DESTDIR)/$(docdir)
  167. # @cp -r images $(DESTDIR)/$(infoimagedir)
  168. dev-build: version.texi version2.texi
  169. @makeinfo --pdf gnunet.texi
  170. @makeinfo --pdf gnunet-c-tutorial.texi
  171. @makeinfo --html gnunet.texi
  172. @makeinfo --html gnunet-c-tutorial.texi
  173. @makeinfo --no-split gnunet.texi
  174. @makeinfo --no-split gnunet-c-tutorial.texi
  175. # TODO: Add more to clean.
  176. clean:
  177. @rm -f gnunet.pdf
  178. @rm -f gnunet.html
  179. @rm -f gnunet.info
  180. @rm -f gnunet.info-1
  181. @rm -f gnunet.info-2
  182. @rm -f gnunet.info-3
  183. @rm -f gnunet-c-tutorial.pdf
  184. @rm -f gnunet-c-tutorial.info
  185. @rm -f gnunet-c-tutorial.html
  186. @rm -fr gnunet.t2p
  187. @rm -fr gnunet-c-tutorial.t2p
  188. @rm -fr manual
  189. # CLEANFILES = \
  190. # gnunet.log \
  191. # gnunet-c-tutorial.log \
  192. # $(wildcard *.aux) \
  193. # $(wildcard *.toc) \
  194. # $(wildcard *.cp) \
  195. # $(wildcard *.cps)
  196. #.PHONY: version.texi
  197. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
  198. # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
  199. # endif
  200. # endif
  201. # endif