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