1 # This Makefile.am is in the public domain
2 docdir = $(datadir)/doc/gnunet/
4 infoimagedir = $(infodir)/images
6 #DOT_FILES = images/$(wildcard *.dot)
8 #DOT_VECTOR_GRAPHICS = \
9 # $(DOT_FILES:%.dot=%.eps) \
10 # $(DOT_FILES:%.dot=%.pdf)
12 AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css
14 dist_infoimage_DATA = \
15 images/gnunet-gtk-0-10-gns-a-done.png \
16 images/gnunet-gtk-0-10-gns-a.png \
17 images/daemon_lego_block.png \
18 images/gnunet-gtk-0-10-gns.png \
19 images/gnunet-0-10-peerinfo.png \
20 images/gnunet-gtk-0-10-identity.png \
21 images/gnunet-fs-gtk-0-10-star-tab.png \
22 images/gnunet-gtk-0-10.png \
23 images/gnunet-gtk-0-10-download-area.png \
24 images/gnunet-gtk-0-10-search-selected.png \
25 images/gnunet-gtk-0-10-fs-menu.png \
26 images/gnunet-gtk-0-10-traffic.png \
27 images/gnunet-gtk-0-10-fs.png \
28 images/gnunet-namestore-gtk-phone.png \
29 images/gnunet-gtk-0-10-fs-publish-editing.png \
30 images/gnunet-namestore-gtk-vpn.png \
31 images/gnunet-gtk-0-10-fs-published.png \
32 images/gnunet-setup-exit.png \
33 images/gnunet-gtk-0-10-fs-publish.png \
34 images/iceweasel-preferences.png \
35 images/gnunet-gtk-0-10-fs-publish-select.png \
36 images/iceweasel-proxy.png \
37 images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
38 images/service_lego_block.png \
39 images/gnunet-gtk-0-10-fs-publish-with-file.png \
40 images/service_stack.png \
41 images/gnunet-gtk-0-10-fs-search.png \
42 images/gnunet-tutorial-service.png \
43 images/gnunet-tutorial-system.png \
44 images/daemon_lego_block.svg \
45 images/lego_stack.svg \
46 images/service_lego_block.svg \
47 images/structure.dot \
50 # images/$(wildcard *.png) \
51 # images/$(wildcard *.svg)
52 # $(DOT_FILES:%.dot=%.png)
55 # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
56 # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
59 # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
60 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
63 # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
64 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
67 # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
68 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
71 # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
72 # mv "$@-tmp.eps" "$@"
74 # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
75 # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
76 # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
77 # $(top_srcdir)/%D%/images/coreutils-size-map.eps
81 gnunet_tutorial_examples = \
82 tutorial-examples/001.c \
83 tutorial-examples/002.c \
84 tutorial-examples/003.c \
85 tutorial-examples/004.c \
86 tutorial-examples/005.c \
87 tutorial-examples/006.c \
88 tutorial-examples/007.c \
89 tutorial-examples/008.c \
90 tutorial-examples/009.c \
91 tutorial-examples/010.c \
92 tutorial-examples/011.c \
93 tutorial-examples/012.c \
94 tutorial-examples/013.c \
95 tutorial-examples/013.1.c \
96 tutorial-examples/014.c \
97 tutorial-examples/015.c \
98 tutorial-examples/016.c \
99 tutorial-examples/017.c \
100 tutorial-examples/018.c \
101 tutorial-examples/019.c \
102 tutorial-examples/020.c \
103 tutorial-examples/021.c \
104 tutorial-examples/022.c \
105 tutorial-examples/023.c \
106 tutorial-examples/024.c \
107 tutorial-examples/025.c \
108 tutorial-examples/026.c
112 gnunet-c-tutorial.texi
115 chapters/developer.texi \
116 chapters/terminology.texi \
117 chapters/installation.texi \
118 chapters/philosophy.texi \
120 chapters/vocabulary.texi \
121 chapters/configuration.texi \
122 chapters/contributing.texi \
128 $(gnunet_tutorial_examples) \
135 # $(DOT_VECTOR_GRAPHICS)
139 gnunet-c-tutorial.cps \
140 chapters/developer.cps \
141 chapters/installation.cps \
142 chapter/philosophy.cps \
144 chapters/configuration.cps \
145 chapters/terminology.cps \
146 chapters/vocabulary.cps \
150 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
151 daemon_lego_block.png: images/daemon_lego_block.svg
152 convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
153 pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
155 service_lego_block.png: images/service_lego_block.svg
156 convert images/service_lego_block.svg images/service_lego_block.png &&
157 pngcrush images/service_lego_block.png images/serivce_lego_block.png
159 lego_stack.png: images/lego_stack.svg
160 convert images/lego_stack.svg images/lego_stack.png &&
161 pngcrush images/lego_stack.png images/lego_stack.png
163 # FIXME: The usage of 'date' strings causes a warning.
165 # echo "@set UPDATED $(date +'%d %B %Y')" > $@
166 # echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
167 # echo "@set EDITION $(PACKAGE_VERSION)" >> $@
168 # echo "@set VERSION $(PACKAGE_VERSION)" >> $@
170 # Workaround for makeinfo error. Whcih in turn introduces more
171 # date-related 'warnings'. Well.
173 echo "@set UPDATED $(date +'%d %B %Y')" > $@
174 echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
175 echo "@set EDITION $(PACKAGE_VERSION)" >> $@
176 echo "@set VERSION $(PACKAGE_VERSION)" >> $@
178 # FIXME: rm *.html and *.pdf
180 # @rm *.aux *.log *.toc *.cp *.cps
183 @mkdir -p $(DESTDIR)/$(docdir)
184 @mkdir -p $(DESTDIR)/$(infoimagedir)
185 @mkdir -p $(DESTDIR)/$(infodir)
186 @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
187 @install -m 0755 gnunet-c-tutorial.pdf $(DESTDIR)/$(docdir)
188 @install -m 0755 gnunet-c-tutorial.info $(DESTDIR)/$(infodir)
189 @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
190 @install gnunet.html $(DESTDIR)/$(docdir)
191 @install gnunet-c-tutorial.html $(DESTDIR)/$(docdir)
194 @mkdir -p $(DESTDIR)/$(docdir)
195 @cp -r manual $(DESTDIR)/$(docdir)
197 # @cp -r images $(DESTDIR)/$(infoimagedir)
199 dev-build: version.texi version2.texi
200 @makeinfo --pdf gnunet.texi
201 @makeinfo --pdf gnunet-c-tutorial.texi
202 @makeinfo --html gnunet.texi
203 @makeinfo --html gnunet-c-tutorial.texi
204 @makeinfo --no-split gnunet.texi
205 @makeinfo --no-split gnunet-c-tutorial.texi
207 # TODO: Add more to clean.
215 @rm -f gnunet-c-tutorial.pdf
216 @rm -f gnunet-c-tutorial.info
217 @rm -f gnunet-c-tutorial.html
219 @rm -fr gnunet-c-tutorial.t2p
224 # gnunet-c-tutorial.log \
225 # $(wildcard *.aux) \
226 # $(wildcard *.toc) \
230 #.PHONY: version.texi
231 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
233 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML